Skip to content

Commit

Permalink
Jenkins: Archive the cargo vcs file
Browse files Browse the repository at this point in the history
Adds clamav cargo vcs info for each rust component.
  • Loading branch information
rsundriyal authored Nov 14, 2024
1 parent 52b2017 commit d6d25c3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pipeline {

dir(path: 'docs/html') {
sh """# Move the clamav-documentation here.
cp -r ../../clamav_documentation/ .
cp -r ../../clamav_documentation/* .
# Clean-up
rm -rf ../../clamav_documentation
rm -rf .git .nojekyll CNAME Placeholder || true
Expand Down Expand Up @@ -122,6 +122,13 @@ pipeline {
cpack --config CPackSourceConfig.cmake
"""
archiveArtifacts(artifacts: "clamav-${params.VERSION}*.tar.gz", onlyIfSuccessful: true)

sh """
jq -n '[ inputs | .package_version = (input_filename | split("/") | .[-2])]' $HOME/.cargo/registry/src/*/*/.cargo_vcs_info.json > clamav_cargo_vcs_info.json
"""

archiveArtifacts(artifacts: "clamav_cargo_vcs_info.json", onlyIfSuccessful: true)

}
cleanWs()
}
Expand Down

0 comments on commit d6d25c3

Please sign in to comment.