From 7cda886190574a4404e97be8eac7488e50bef5d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=8E=89?= Date: Mon, 20 Jun 2022 01:08:58 +0000 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20''?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加node-nvmjenkisnfile --- jenkinsfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 jenkinsfile diff --git a/jenkinsfile b/jenkinsfile new file mode 100644 index 0000000..5d70395 --- /dev/null +++ b/jenkinsfile @@ -0,0 +1,20 @@ +pipeline { + agent { + node{ + label 'jnlp-slave' + } + } + + stages { + stage('Testing node......') { + steps { + sh 'switch-auth.sh anxinyun' + build Name "#${BUILD_NUMBER} ~/fs-devops/${JOB_NAME}:${IMAGE_VERSION}" + build Description "registry.cn-hangzhou.aliyuncs.com/${DEVOPS}/${JOB_NAME}:${IMAGE_VERSION}" + sh 'cd dev' + sh 'docker build -t registry.cn-hangzhou.aliyuncs.com/${DEVOPS}/${JOB_NAME}:${IMAGE_VERSION} .' + sh 'docker push registry.cn-hangzhou.aliyuncs.com/${DEVOPS}/${JOB_NAME}:${IMAGE_VERSION}' + } + } + } +}