You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The --scan flag only requests an Xray scan for pass/fail gating; it must not, on its own, deploy artifacts.
299
+
// Artifacts are uploaded here only when the Maven goal actually requests deployment (i.e. "install"/"deploy").
300
+
// For non-deploy goals (e.g. "clean package --scan") the scan still gates the build, but nothing is uploaded.
301
+
if!mc.isDeploymentRequested() {
302
+
log.Info("Xray scan completed. Skipping upload because the Maven goal does not request deployment. Only 'install' and 'deploy' goals (including deploy:deploy-file) upload artifacts to Artifactory.")
303
+
// The scan already ran for pass/fail gating. Since nothing was uploaded, replace the result with an
304
+
// empty one so the command summary does not misreport the scanned artifacts as deployed.
0 commit comments