Updated Jenkinsfile
Some checks failed
Gitea Organization/fileserver/pipeline/head There was a failure building this commit
Some checks failed
Gitea Organization/fileserver/pipeline/head There was a failure building this commit
This commit is contained in:
parent
8066c77eb4
commit
3838a55be6
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -41,7 +41,10 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Package') {
|
stage('Package') {
|
||||||
agent { docker { image 'alpine:latest' reuseNode true }}
|
agent { docker {
|
||||||
|
image 'alpine:latest'
|
||||||
|
reuseNode true
|
||||||
|
}}
|
||||||
steps {
|
steps {
|
||||||
sh 'apk add tar xz'
|
sh 'apk add tar xz'
|
||||||
dir('static') {
|
dir('static') {
|
||||||
@ -55,12 +58,13 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Release') {
|
stage('Release') {
|
||||||
agent { docker { image 'alpine:latest' reuseNode true }}
|
agent any
|
||||||
when { buildingTag() }
|
when { buildingTag() }
|
||||||
environment {
|
environment {
|
||||||
TOKEN = credentials('abd7020c-43d6-485b-ae09-2f9b484d9c15')
|
TOKEN = credentials('abd7020c-43d6-485b-ae09-2f9b484d9c15')
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
|
script {
|
||||||
def release_body = [
|
def release_body = [
|
||||||
'name': "Version ${TAG_NAME}",
|
'name': "Version ${TAG_NAME}",
|
||||||
'tag_name': "${TAG_NAME}",
|
'tag_name': "${TAG_NAME}",
|
||||||
@ -89,3 +93,4 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user