Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
932aa46a18 |
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@ -12,21 +12,11 @@ pipeline {
|
|||||||
stage('Release') {
|
stage('Release') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
def isPrerelease = true
|
|
||||||
try {
|
|
||||||
sh(script: "git describe --exact-match ${GIT_COMMIT}")
|
|
||||||
isPrerelease = false
|
|
||||||
} catch (err) {
|
|
||||||
println "Could not find tag associated with commit '${GIT_COMMIT}' ! Generating a prerelease..."
|
|
||||||
}
|
|
||||||
|
|
||||||
sh 'ARCH_TARGETS="amd64 arm arm64" make release'
|
sh 'ARCH_TARGETS="amd64 arm arm64" make release'
|
||||||
|
|
||||||
def attachments = sh(returnStdout: true, script: 'find release -maxdepth 1 -type f').split(' ')
|
def attachments = sh(returnStdout: true, script: 'find release -maxdepth 1 -type f').split(' ')
|
||||||
gitea.release('forge-jenkins', 'Cadoles', 'go-http-peering', [
|
gitea.release('forge-jenkins', 'Cadoles', 'go-http-peering', [
|
||||||
'attachments': attachments,
|
'attachments': attachments
|
||||||
'isDraft': false,
|
|
||||||
'isPrerelease': isPrerelease,
|
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user