7 Commits

Author SHA1 Message Date
Grigo aad66e3ac6 Обновить Jenkinsfile 2026-05-06 20:41:46 +00:00
Grigo 0c20bbb435 Обновить Jenkinsfile 2026-05-06 20:38:28 +00:00
Grigo 371dd08eaa Обновить vcpkg.json 2026-05-04 15:00:19 +00:00
Grigo ffdc77ecd7 Обновить vcpkg.json 2026-05-04 14:56:36 +00:00
Grigo 6a0c4b255f Full lib list 2026-05-04 14:53:07 +00:00
Grigo 4437c80905 refs TG-4: added autoReleaswe 2026-05-03 12:18:27 +03:00
Grigo 0288e6a125 refs TG-4: added autoReleaswe 2026-05-03 12:12:56 +03:00
2 changed files with 65 additions and 21 deletions
Vendored
+42 -20
View File
@@ -40,33 +40,49 @@ pipeline {
} }
} }
stage('Create Gitea Release') { stage('Create Gitea Release and Upload ZIP') {
agent { label 'windows' } agent { label 'windows' }
steps { steps {
withCredentials([string(credentialsId: 'Gitea_Credentials', variable: 'GITEA_TOKEN')]) { withCredentials([string(credentialsId: 'Gitea_Credentials', variable: 'GITEA_TOKEN')]) {
bat """ writeFile file: 'gitea-release.ps1', text: '''
curl -X POST "https://git.grigowashere.ru/api/v1/repos/Grigo/Testing/releases" ^ $ErrorActionPreference = "Stop"
-H "Authorization: token %GITEA_TOKEN%" ^
-H "Content-Type: application/json" ^ Compress-Archive -Path "dist\\windows\\*" -DestinationPath "dist\\windows-build.zip" -Force
-d "{\\"tag_name\\":\\"v%BUILD_NUMBER%\\",\\"target_commitish\\":\\"main\\",\\"name\\":\\"Release v%BUILD_NUMBER%\\",\\"body\\":\\"Jenkins build %BUILD_NUMBER%\\",\\"draft\\":false,\\"prerelease\\":false}"
""" $headers = @{
} Authorization = "token $env:GITEA_TOKEN"
}
} }
stage('Upload Artifact to Gitea Release') { $body = @{
agent { label 'windows' } tag_name = "v$env:BUILD_NUMBER"
target_commitish = "main"
name = "Release v$env:BUILD_NUMBER"
body = "Jenkins build $env:BUILD_NUMBER"
draft = $false
prerelease = $false
} | ConvertTo-Json
steps { $release = Invoke-RestMethod `
withCredentials([string(credentialsId: 'Gitea_Credentials', variable: 'GITEA_TOKEN')]) { -Method Post `
bat """ -Uri "https://git.grigowashere.ru/api/v1/repos/Grigo/Testing/releases" `
powershell -NoProfile -Command "Compress-Archive -Path dist\\windows\\* -DestinationPath dist\\windows-build.zip -Force" -Headers $headers `
-ContentType "application/json" `
-Body $body
curl -X POST "https://git.grigowashere.ru/api/v1/repos/Grigo/Testing/releases/tags/v%BUILD_NUMBER%/assets" ^ $uploadUrl = "https://git.grigowashere.ru/api/v1/repos/Grigo/Testing/releases/$($release.id)/assets?name=windows-build.zip"
-H "Authorization: token %GITEA_TOKEN%" ^
-F "attachment=@dist\\windows-build.zip" Invoke-RestMethod `
""" -Method Post `
-Uri $uploadUrl `
-Headers $headers `
-InFile "dist\\windows-build.zip" `
-ContentType "application/zip"
'''
bat '''
powershell -NoProfile -ExecutionPolicy Bypass -File gitea-release.ps1
'''
} }
} }
} }
@@ -82,7 +98,13 @@ curl -X POST "https://git.grigowashere.ru/api/v1/repos/Grigo/Testing/releases/ta
writeFile file: 'taiga-post.ps1', text: ''' writeFile file: 'taiga-post.ps1', text: '''
$ErrorActionPreference = "Continue" $ErrorActionPreference = "Continue"
$commitMsg = git log -1 --pretty=%B $commitMsg = git log -1 --pretty=%B 2>$null
if ([string]::IsNullOrWhiteSpace($commitMsg)) {
Write-Host "No git commit message available"
exit 0
}
$match = [regex]::Match($commitMsg, 'TG-(\\d+)') $match = [regex]::Match($commitMsg, 'TG-(\\d+)')
if (-not $match.Success) { if (-not $match.Success) {
+23 -1
View File
@@ -1,5 +1,27 @@
{ {
"dependencies": [ "dependencies": [
"qtbase" "qt5",
"qt5-serialport",
"qt5-svg",
"qt5-tools",
"qt5-declarative",
"qt",
"qtdeclarative",
"qtserialport",
"qtsvg",
"qttools",
"boost",
"boost-asio",
"boost-filesystem",
"boost-system",
"boost-thread",
"boost-regex",
"boost-date-time",
"boost-program-options",
"boost-serialization",
"boost-random",
"boost-iostreams"
] ]
} }