Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6a0c4b255f | |||
| 4437c80905 | |||
| 0288e6a125 |
Vendored
+35
-19
@@ -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
|
||||||
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+64
-1
@@ -1,5 +1,68 @@
|
|||||||
{
|
{
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"qtbase"
|
"qt5-base",
|
||||||
|
"qt5-tools",
|
||||||
|
"qt5-webengine",
|
||||||
|
"qt5-svg",
|
||||||
|
"qt5-quickcontrols2",
|
||||||
|
"qt6-base",
|
||||||
|
"qt6-tools",
|
||||||
|
"qt6-webengine",
|
||||||
|
"qt6-svg",
|
||||||
|
"qt6-quickcontrols2",
|
||||||
|
"boost-asio",
|
||||||
|
"boost-filesystem",
|
||||||
|
"boost-system",
|
||||||
|
"boost-thread",
|
||||||
|
"boost-regex",
|
||||||
|
"boost-date_time",
|
||||||
|
"boost-serialization",
|
||||||
|
"boost-chrono",
|
||||||
|
"boost-program_options",
|
||||||
|
"boost-iostreams",
|
||||||
|
"boost-test",
|
||||||
|
"boost-math",
|
||||||
|
"boost-atomic",
|
||||||
|
"boost-context",
|
||||||
|
"boost-container",
|
||||||
|
"boost-config",
|
||||||
|
"boost-log",
|
||||||
|
"boost-signals2",
|
||||||
|
"boost-timer",
|
||||||
|
"boost-windows-test",
|
||||||
|
"boost-interprocess",
|
||||||
|
"boost-network",
|
||||||
|
"boost-graph",
|
||||||
|
"boost-serialization",
|
||||||
|
"boost-coroutine",
|
||||||
|
"boost-locale",
|
||||||
|
"boost-smart_ptr",
|
||||||
|
"boost-random",
|
||||||
|
"boost-python",
|
||||||
|
"boost-wave",
|
||||||
|
"boost-fiber",
|
||||||
|
"boost-bimap",
|
||||||
|
"boost-mp11",
|
||||||
|
"boost-hana",
|
||||||
|
"boost-optional",
|
||||||
|
"boost-fusion",
|
||||||
|
"boost-spirit",
|
||||||
|
"boost-beast",
|
||||||
|
"boost-tuple",
|
||||||
|
"boost-uuid",
|
||||||
|
"boost-pool",
|
||||||
|
"boost-log_setup",
|
||||||
|
"boost-xpressive",
|
||||||
|
"boost-type_traits",
|
||||||
|
"boost-predef",
|
||||||
|
"boost-smart_ptr",
|
||||||
|
"boost-thread",
|
||||||
|
"boost-container",
|
||||||
|
"boost-unordered",
|
||||||
|
"boost-intrusive",
|
||||||
|
"boost-range",
|
||||||
|
"boost-dll",
|
||||||
|
"boost-interprocess",
|
||||||
|
"boost-mpi"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user