From 7c720df890f2a117a2dc17c313162a04571325f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=8E=89?= Date: Thu, 15 Dec 2022 08:10:32 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20'jenkinsfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jenkinsfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 jenkinsfile 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