Skip to content

Commit

Permalink
Jenkinsfile: Archive deps and manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
xross committed Dec 11, 2024
1 parent 40d00c1 commit c4fa786
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -174,10 +175,10 @@ pipeline {
} // steps
} // stage('Library checks')

stage("Archive sw") {
stage("Archive sandbox") {
steps
{
archiveSw(REPO)
archiveSandbox(REPO)
}
} // stage("Archive sw")

Expand Down

0 comments on commit c4fa786

Please sign in to comment.