diff --git a/jenkinsfile b/jenkinsfile new file mode 100644 index 0000000..c191b2a --- /dev/null +++ b/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}' + } + } + } +} \ No newline at end of file