From 9340e004bd3e768a0dd771e7807923ed1f18f006 Mon Sep 17 00:00:00 2001 From: Jeffry Hesse <5544326+DarthHater@users.noreply.github.com> Date: Thu, 28 May 2020 09:51:43 -0800 Subject: [PATCH] There we go --- Jenkinsfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f6f7dd43..32623699 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -30,10 +30,12 @@ dockerizedBuildPipeline( ''' }, vulnerabilityScan: { - withCredentials([usernamePassword(credentialsId: 'policy.s integration account', - usernameVariable: 'IQ_USERNAME', passwordVariable: 'IQ_PASSWORD')]) { - sh 'go list -m all | ./nancy iq -application nancy -stage build -user $IQ_USERNAME -token $IQ_PASSWORD -server-url https://policy.ci.sonatype.dev' - } + withDockerImage(env.DOCKER_IMAGE_ID, { + withCredentials([usernamePassword(credentialsId: 'policy.s integration account', + usernameVariable: 'IQ_USERNAME', passwordVariable: 'IQ_PASSWORD')]) { + sh 'go list -m all | ./nancy iq -application nancy -stage build -user $IQ_USERNAME -token $IQ_PASSWORD -server-url https://policy.ci.sonatype.dev' + } + }) }, testResults: [ 'test-results.xml' ], onSuccess: {