浏览代码

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 'ls -la target/*.hpi'
             archiveArtifacts artifacts: 'target/*.hpi', fingerprint: true
-            stash name: 'hpi', includes: 'target/*.hpi'
           }
         }
       }
@@ -74,8 +73,8 @@ pipeline {
         }
       }
       agent { label 'built-in' }
+      options { skipDefaultCheckout() }
       steps {
-        unstash 'hpi'
         withCredentials([string(credentialsId: 'gogs-release-token', variable: 'GOGS_RELEASE_TOKEN')]) {
           sh '''
             set -euo pipefail