From f4ecd2d84f8b0fb26227cd231bcc93122975e535 Mon Sep 17 00:00:00 2001 From: Hunor Csomortáni Date: Aug 28 2018 11:13:34 +0000 Subject: Use withCredentials() instead of doAs() The later is deprecated, according to the warning seen during builds. Signed-off-by: Hunor Csomortáni --- diff --git a/Jenkinsfile b/Jenkinsfile index fa634d7..3db7ae8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -212,7 +212,7 @@ node('fedora-27') { stage('Perform functional tests') { openshift.withCluster('Upshift') { - openshift.doAs('upshift-greenwave-test-jenkins-credentials') { + openshift.withCredentials('upshift-greenwave-test-jenkins-credentials') { openshift.withProject('greenwave-test') { def rtemplate = readYaml file: 'openshift/resultsdb-test-template.yaml' // TODO: move this image to the factory2 project in the docker registry