From eae14dc2362c0a7cad81ac0ce6d5e9b7eb0306c4 Mon Sep 17 00:00:00 2001 From: Jesse Houldsworth Date: Thu, 27 Mar 2025 15:09:16 -0700 Subject: [PATCH] jenmkinsfile --- Jenkinsfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b86d237c8..9f0ac71fb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,7 +10,6 @@ pipeline { JFROG_CREDENTIALS_ID = 'jfrog-saas' JFROG_CLI_BUILD_NAME = "spring-petclinic" JFROG_CLI_BUILD_NUMBER = "${BUILD_ID}" - // Downloaded JFrog CLI path JF = "${WORKSPACE}/jfrog" } stages { @@ -57,9 +56,9 @@ pipeline { stage('Xray Scan') { steps { - // Changed to modern syntax: jf x s + // Use the Artifactory command to scan the build with Xray: sh """ - ${JF} x s ${JFROG_CLI_BUILD_NAME} ${JFROG_CLI_BUILD_NUMBER} \\ + ${JF} rt build-scan ${JFROG_CLI_BUILD_NAME} ${JFROG_CLI_BUILD_NUMBER} \\ --fail-on-severity=High """ }