-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathJenkinsfile
More file actions
40 lines (38 loc) · 1.11 KB
/
Jenkinsfile
File metadata and controls
40 lines (38 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
pipeline {
agent {
docker {
registryUrl 'https://us-docker.pkg.dev'
image 'verdant-bulwark-278/bzm-plugin-base-image/bzm-plugin-base-image:latest'
registryCredentialsId 'push-to-gar-enc'
args '-u root -v /var/run/docker.sock:/var/run/docker.sock -v $WORKSPACE:/build'
}
}
options {
buildDiscarder(logRotator(numToKeepStr: "10"))
ansiColor('xterm')
timestamps()
disableConcurrentBuilds()
}
stages {
stage('Create Release') {
environment {
github_token = credentials('github_release_token')
}
steps {
script {
sh'''
rversion=$(cat /build/versionToRelease.ini | awk '{print $3}')
python /build/release-to-github.py ${github_token} ${rversion}
'''
}
}
}
stage('Publish Release') {
steps {
script {
sh 'echo "Coming soon..."'
}
}
}
}
}