I am trying to scan a build with Jfrog xray, but the scan does not finish. Instead it remains idling. My pipeline stages are configured like so
stage('Publish'){
steps {
rtPublishBuildInfo (
serverId : 'my-server',
buildName : env.JOB_NAME,
buildNumber : BUILD_NUMBER
)
}
}
//Scan Build Artifacts in Xray
stage('Xray Scan') {
steps{
script{
xrayConfig = [
'buildName' : env.JOB_NAME,
'buildNumber' : BUILD_NUMBER,
'failBuild' : false
]
xrayResults = rtServer.xrayScan xrayConfig
echo xrayResults as String
sleep 10
}
}
}
The pipeline never finishes scanning though. Instead it remains idling.
Is the a good way to debug this process? I'd like to scan builds with xray.