Browse Source

添加 'jenkinsfile'

master
李玉 2 years ago
parent
commit
7c720df890
  1. 18
      jenkinsfile

18
jenkinsfile

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