Skip to content

Commit 77f59c4

Browse files
authored
Added conditional statement to skip audit while releasing (#819)
1 parent 3670f60 commit 77f59c4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

release/pipelines.release.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ pipelines:
1414
NEXT_DEVELOPMENT_VERSION: 2.0.x-SNAPSHOT
1515
NEXT_GRADLE_VERSION: 4.0.0
1616
NEXT_GRADLE_DEVELOPMENT_VERSION: 4.0.x-SNAPSHOT
17+
SKIP_AUDIT_CHECK: "false"
1718

1819
steps:
1920
- name: Release
@@ -54,7 +55,14 @@ pipelines:
5455
- jf gradlec --use-wrapper --uses-plugin --repo-resolve ecosys-maven-remote --repo-deploy ecosys-oss-release-local
5556

5657
# Run audit
57-
- jf audit --fail=false
58+
- |
59+
if [[ $SKIP_AUDIT_CHECK == "true" ]]; then
60+
echo "Skipping audit check"
61+
else
62+
echo "Running audit check"
63+
jf audit --fail=false
64+
fi
65+
5866
5967
# Update version
6068
- sed -i -e "/build-info-version=/ s/=.*/=$NEXT_VERSION/" -e "/build-info-extractor-gradle-version=/ s/=.*/=$NEXT_GRADLE_VERSION/" gradle.properties

0 commit comments

Comments
 (0)