From c4fa78606ff156a9059e0bb46629cbb231f00cec Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Wed, 11 Dec 2024 15:22:33 +0000 Subject: [PATCH] Jenkinsfile: Archive deps and manifest --- Jenkinsfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c0e06c11..0de3fffa 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -29,10 +29,11 @@ def clone_test_deps() { } } -def archiveSw(String repoName) { +def archiveSandbox(String repoName) { + sh "cp ${WORKSPACE}/${repoName}/build/manifest.txt ${WORKSPACE}" + sh "rm -rf .get_tools .venv" sh "git -C ${repoName} clean -xdf -e '*.xe'" - sh "zip ${repoName}_sw.zip -r ${repoName}" - archiveArtifacts artifacts: "${repoName}_sw.zip", allowEmptyArchive: false + zip zipFile: "${repoName}_sw.zip", archive: true, defaultExcludes: false } getApproval() @@ -174,10 +175,10 @@ pipeline { } // steps } // stage('Library checks') - stage("Archive sw") { + stage("Archive sandbox") { steps { - archiveSw(REPO) + archiveSandbox(REPO) } } // stage("Archive sw")