[VOL-4073] Updated voltha-physical-soak-dt-tests script to read variables correctly
Change-Id: I6a43337016561a410b722eacc60e9778e0ae072f
diff --git a/jjb/pipeline/voltha/master/voltha-physical-soak-dt-tests.groovy b/jjb/pipeline/voltha/master/voltha-physical-soak-dt-tests.groovy
index 320bdf6..480ea75 100644
--- a/jjb/pipeline/voltha/master/voltha-physical-soak-dt-tests.groovy
+++ b/jjb/pipeline/voltha/master/voltha-physical-soak-dt-tests.groovy
@@ -235,13 +235,13 @@
onlyCritical: true
]);
// get cpu usage by container
- sh '''
+ sh """
mkdir -p $WORKSPACE/plots || true
cd $WORKSPACE/voltha-system-tests
source ./vst_venv/bin/activate || true
sleep 60 # we have to wait for prometheus to collect all the information
python scripts/sizing.py -o $WORKSPACE/plots -a 0.0.0.0:31301 -n ${volthaNamespace} -s 7200 || true
- '''
+ """
archiveArtifacts artifacts: '**/*.log,**/*.gz,**/*.tgz,*.txt,pods/*.txt,plots/*'
}
}
diff --git a/jjb/pipeline/voltha/voltha-2.8/voltha-physical-soak-dt-tests.groovy b/jjb/pipeline/voltha/voltha-2.8/voltha-physical-soak-dt-tests.groovy
index 320bdf6..480ea75 100644
--- a/jjb/pipeline/voltha/voltha-2.8/voltha-physical-soak-dt-tests.groovy
+++ b/jjb/pipeline/voltha/voltha-2.8/voltha-physical-soak-dt-tests.groovy
@@ -235,13 +235,13 @@
onlyCritical: true
]);
// get cpu usage by container
- sh '''
+ sh """
mkdir -p $WORKSPACE/plots || true
cd $WORKSPACE/voltha-system-tests
source ./vst_venv/bin/activate || true
sleep 60 # we have to wait for prometheus to collect all the information
python scripts/sizing.py -o $WORKSPACE/plots -a 0.0.0.0:31301 -n ${volthaNamespace} -s 7200 || true
- '''
+ """
archiveArtifacts artifacts: '**/*.log,**/*.gz,**/*.tgz,*.txt,pods/*.txt,plots/*'
}
}