diff --git a/jenkins/artifacts/jenkinsfile b/jenkins/artifacts/jenkinsfile index 7e9286a91..5f54b0c7a 100644 --- a/jenkins/artifacts/jenkinsfile +++ b/jenkins/artifacts/jenkinsfile @@ -174,8 +174,7 @@ pipeline { stage('Test and Generate Harvest Metrics') { steps { script { - sh 'cp /u/mpeg/harvest/harvest.yml .' - def result = sh(script: 'bin/harvest generate metrics --poller dc1', returnStatus: true) + def result = sh(script: 'bin/harvest generate metrics --poller dc1 --config /u/mpeg/harvest/harvest.yml', returnStatus: true) if (result != 0) { error("Generate Harvest metrics command failed.") }