From 4aa08dd3f295a7c135c061864f2e4203151baaf6 Mon Sep 17 00:00:00 2001 From: lihongjie0209 Date: Fri, 4 Aug 2023 14:19:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0jenkins=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index e69de29b..520c03b8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -0,0 +1,33 @@ +pipeline{ + + agent any + + options { + + disableConcurrentBuilds() + } + + + triggers { + pollSCM 'H/3 * * * * ' + } + stages{ + + + stage("打包"){ + + + steps{ + + sh "docker build . -t coal:${env.BRANCH_NAME}" + + + } + + } + + } + + + +} \ No newline at end of file