Skip to content

Commit

Permalink
Fix trivy junit reports (#2420)
Browse files Browse the repository at this point in the history
  • Loading branch information
olexandr-havryliak authored Dec 13, 2023
1 parent 41d9484 commit 008bb91
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pbm/pbm-docker-arm.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pipeline {
TRIVY_VERSION=\$(curl --silent 'https://api.github.com/repos/aquasecurity/trivy/releases/latest' | grep '"tag_name":' | tr -d '"' | sed -E 's/.*v(.+),.*/\\1/')
wget https://github.com/aquasecurity/trivy/releases/download/v\${TRIVY_VERSION}/trivy_\${TRIVY_VERSION}_Linux-ARM64.tar.gz
sudo tar zxvf trivy_\${TRIVY_VERSION}_Linux-ARM64.tar.gz -C /usr/local/bin/
wget https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/junit.tpl
wget https://raw.githubusercontent.com/aquasecurity/trivy/v\${TRIVY_VERSION}/contrib/junit.tpl
curl https://raw.githubusercontent.com/Percona-QA/psmdb-testing/main/docker/trivyignore -o ".trivyignore"
if [ ${params.PBM_REPO_CH} = "release" ]; then
/usr/local/bin/trivy -q image --format template --template @junit.tpl -o trivy-hight-junit.xml \
Expand Down
2 changes: 1 addition & 1 deletion pbm/pbm-docker.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pipeline {
TRIVY_VERSION=\$(curl --silent 'https://api.github.com/repos/aquasecurity/trivy/releases/latest' | grep '"tag_name":' | tr -d '"' | sed -E 's/.*v(.+),.*/\\1/')
wget https://github.com/aquasecurity/trivy/releases/download/v\${TRIVY_VERSION}/trivy_\${TRIVY_VERSION}_Linux-64bit.tar.gz
sudo tar zxvf trivy_\${TRIVY_VERSION}_Linux-64bit.tar.gz -C /usr/local/bin/
wget https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/junit.tpl
wget https://raw.githubusercontent.com/aquasecurity/trivy/v\${TRIVY_VERSION}/contrib/junit.tpl
curl https://raw.githubusercontent.com/Percona-QA/psmdb-testing/main/docker/trivyignore -o ".trivyignore"
if [ ${params.PBM_REPO_CH} = "release" ]; then
/usr/local/bin/trivy -q image --format template --template @junit.tpl -o trivy-hight-junit.xml \
Expand Down
2 changes: 1 addition & 1 deletion psmdb/psmdb-docker-arm.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pipeline {
TRIVY_VERSION=\$(curl --silent 'https://api.github.com/repos/aquasecurity/trivy/releases/latest' | grep '"tag_name":' | tr -d '"' | sed -E 's/.*v(.+),.*/\\1/')
wget https://github.com/aquasecurity/trivy/releases/download/v\${TRIVY_VERSION}/trivy_\${TRIVY_VERSION}_Linux-ARM64.tar.gz
sudo tar zxvf trivy_\${TRIVY_VERSION}_Linux-ARM64.tar.gz -C /usr/local/bin/
wget https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/junit.tpl
wget https://raw.githubusercontent.com/aquasecurity/trivy/v\${TRIVY_VERSION}/contrib/junit.tpl
curl https://raw.githubusercontent.com/Percona-QA/psmdb-testing/main/docker/trivyignore -o ".trivyignore"
if [ ${params.PSMDB_REPO} = "release" ]; then
/usr/local/bin/trivy -q image --format template --template @junit.tpl -o trivy-hight-junit.xml \
Expand Down
2 changes: 1 addition & 1 deletion psmdb/psmdb-docker.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pipeline {
TRIVY_VERSION=\$(curl --silent 'https://api.github.com/repos/aquasecurity/trivy/releases/latest' | grep '"tag_name":' | tr -d '"' | sed -E 's/.*v(.+),.*/\\1/')
wget https://github.com/aquasecurity/trivy/releases/download/v\${TRIVY_VERSION}/trivy_\${TRIVY_VERSION}_Linux-64bit.tar.gz
sudo tar zxvf trivy_\${TRIVY_VERSION}_Linux-64bit.tar.gz -C /usr/local/bin/
wget https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/junit.tpl
wget https://raw.githubusercontent.com/aquasecurity/trivy/v\${TRIVY_VERSION}/contrib/junit.tpl
curl https://raw.githubusercontent.com/Percona-QA/psmdb-testing/main/docker/trivyignore -o ".trivyignore"
if [ ${params.PSMDB_REPO} = "release" ]; then
/usr/local/bin/trivy -q image --format template --template @junit.tpl -o trivy-hight-junit.xml \
Expand Down
2 changes: 1 addition & 1 deletion psmdb/psmdb-fips.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pipeline {
stage('Set build name'){
steps {
script {
currentBuild.displayName = "${params.PSMDB_REPO}-${params.PSMDB_VERSION}"
currentBuild.displayName = "${params.REPO}-${params.PSMDB_VERSION}"
}
}
}
Expand Down

0 comments on commit 008bb91

Please sign in to comment.