Browse Source

添加 'jenkinsfile-api'

master
李玉 2 years ago
parent
commit
567fd32ee5
  1. 18
      jenkinsfile-api

18
jenkinsfile-api

@ -0,0 +1,18 @@
pipeline {
agent {
node{
label 'jnlp-slave'
}
}
stages {
stage('Testing missionboard-api ......') {
steps {
buildName "#${BUILD_NUMBER} ~/devops/${JOB_NAME}:${IMAGE_VERSION}"
buildDescription "harbor.anxinyun.cn/devops/${JOB_NAME}:${IMAGE_VERSION}"
sh 'nerdctl build -t harbor.anxinyun.cn/devops/${JOB_NAME}:${IMAGE_VERSION} ./gowork'
sh 'nerdctl push harbor.anxinyun.cn/devops/${JOB_NAME}:${IMAGE_VERSION}'
}
}
}
}
Loading…
Cancel
Save