diff --git a/Jenkinsfile b/Jenkinsfile index 9f0ac71fb..fcf4fce99 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -56,10 +56,10 @@ pipeline { stage('Xray Scan') { steps { - // Use the Artifactory command to scan the build with Xray: + // Use the new "jf build-scan" command + // "Fail Build" is decided by your Xray policy if severity >= High sh """ - ${JF} rt build-scan ${JFROG_CLI_BUILD_NAME} ${JFROG_CLI_BUILD_NUMBER} \\ - --fail-on-severity=High + ${JF} build-scan ${JFROG_CLI_BUILD_NAME} ${JFROG_CLI_BUILD_NUMBER} --fail """ } }