Skip to content

Commit d6d25c3

Browse files
authored
Jenkins: Archive the cargo vcs file
Adds clamav cargo vcs info for each rust component.
1 parent 52b2017 commit d6d25c3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Jenkinsfile

+8-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ pipeline {
8989

9090
dir(path: 'docs/html') {
9191
sh """# Move the clamav-documentation here.
92-
cp -r ../../clamav_documentation/ .
92+
cp -r ../../clamav_documentation/* .
9393
# Clean-up
9494
rm -rf ../../clamav_documentation
9595
rm -rf .git .nojekyll CNAME Placeholder || true
@@ -122,6 +122,13 @@ pipeline {
122122
cpack --config CPackSourceConfig.cmake
123123
"""
124124
archiveArtifacts(artifacts: "clamav-${params.VERSION}*.tar.gz", onlyIfSuccessful: true)
125+
126+
sh """
127+
jq -n '[ inputs | .package_version = (input_filename | split("/") | .[-2])]' $HOME/.cargo/registry/src/*/*/.cargo_vcs_info.json > clamav_cargo_vcs_info.json
128+
"""
129+
130+
archiveArtifacts(artifacts: "clamav_cargo_vcs_info.json", onlyIfSuccessful: true)
131+
125132
}
126133
cleanWs()
127134
}

0 commit comments

Comments
 (0)