mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 12:25:50 +00:00
jenmkinsfile
This commit is contained in:
parent
cff156cdca
commit
eae14dc236
1 changed files with 2 additions and 3 deletions
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
@ -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
|
||||
"""
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue