Skip to content
Snippets Groups Projects
Commit 57053cff authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

only include files in the artefact which were installed during make install

parent adc546c0
No related branches found
No related tags found
No related merge requests found
......@@ -58,10 +58,13 @@ def transformIntoStep(String libraryName, ArrayList<String> dependencyList, Stri
chown -R msk_jenkins /export/doocs
sudo -E -u msk_jenkins git clone http://doocs-git.desy.de/cgit/doocs/library/${libraryName}.git .
make -j8
make install
"""
sh """
sudo -u msk_jenkins tar zcf install-${JOB_NAME}-${label}-${buildType}.tgz /export
find /export > export.list.before
make install
find /export > export.list.after
diff export.list.before export.list.after | grep "^> " | sed -e 's/^> //' > export.list.installed
sudo -u msk_jenkins tar zcf install-${JOB_NAME}-${label}-${buildType}.tgz --files-from export.list.installed
"""
archiveArtifacts artifacts: "install-${JOB_NAME}-${label}-${buildType}.tgz", onlyIfSuccessful: false
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment