Explorar o código

更新 'Jenkinsfile'

通过Docker制作自定义镜像
chl %!s(int64=2) %!d(string=hai) anos
pai
achega
0aa257ce06
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      Jenkinsfile

+ 2 - 1
Jenkinsfile

@@ -26,7 +26,8 @@ pipeline{
   }
   stage('通过Docker制作自定义镜像'){
    steps{
-    echo '通过Docker制作自定义镜像 - SUCCESS'
+    sh '''mv ./target/*.jar ./docker
+docker build -t ${JOB_NAME}:${tag} ./docker/'''
    }
   }
   stage('将自定义镜像推送到Harbor'){