瀏覽代碼

ci: publish HPI from workspace, skip stash on built-in

unstash failed with EPERM on file timestamps after the Docker agent
wrote the artifact as root. Reuse the shared workspace instead.
Allan Barcelos 4 小時之前
父節點
當前提交
7c9e174d81
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      Jenkinsfile

+ 1 - 2
Jenkinsfile

@@ -55,7 +55,6 @@ pipeline {
             sh 'mvn -B -ntp -DskipTests -Dset.changelist package'
             sh 'mvn -B -ntp -DskipTests -Dset.changelist package'
             sh 'ls -la target/*.hpi'
             sh 'ls -la target/*.hpi'
             archiveArtifacts artifacts: 'target/*.hpi', fingerprint: true
             archiveArtifacts artifacts: 'target/*.hpi', fingerprint: true
-            stash name: 'hpi', includes: 'target/*.hpi'
           }
           }
         }
         }
       }
       }
@@ -74,8 +73,8 @@ pipeline {
         }
         }
       }
       }
       agent { label 'built-in' }
       agent { label 'built-in' }
+      options { skipDefaultCheckout() }
       steps {
       steps {
-        unstash 'hpi'
         withCredentials([string(credentialsId: 'gogs-release-token', variable: 'GOGS_RELEASE_TOKEN')]) {
         withCredentials([string(credentialsId: 'gogs-release-token', variable: 'GOGS_RELEASE_TOKEN')]) {
           sh '''
           sh '''
             set -euo pipefail
             set -euo pipefail