diff --git a/.ci/jenkins/Jenkinsfile.deploy b/.ci/jenkins/Jenkinsfile.deploy index 76b63813bf6..18437c26ba5 100644 --- a/.ci/jenkins/Jenkinsfile.deploy +++ b/.ci/jenkins/Jenkinsfile.deploy @@ -106,10 +106,13 @@ pipeline { stage('Build & Test') { steps { script { - getMavenCommand() - .withProperty('maven.test.failure.ignore', true) - .skipTests(params.SKIP_TESTS) - .run('clean install') + dir(getRepoName()) { + String mvnCmd = getMavenCommand() + .withProperty('maven.test.failure.ignore', true) + .skipTests(params.SKIP_TESTS) + .getFullRunCommand('clean install') + util.runWithPythonVirtualEnv(mvnCmd, 'swf') + } } } post { @@ -124,7 +127,9 @@ pipeline { stage('Deploy locally') { steps { script { - runMavenDeploy(true) + dir(getRepoName()) { + runMavenDeploy(true) + } } } }