diff --git a/jenkinsfile/Jenkinsfile b/jenkinsfile/Jenkinsfile
index 60688208299cbeb219d2d0a342b021be0757a0d6..133720934d81d26b63cb302c42da27f65af9cafa 100644
--- a/jenkinsfile/Jenkinsfile
+++ b/jenkinsfile/Jenkinsfile
@@ -9,27 +9,33 @@ pipeline {
     stages {
         stage ('Test environment'){
             steps {
-                sh '''#!/bin/bash
-                    eval `oidc-agent-service use`
-                    oidc-add infn-cloud-ops
-                    
-                    env
+                withCredentials([
+                    usernamePassword(credentialsId: "jenkins_scans_creds", usernameVariable: 'GMP_USER', passwordVariable: 'GMP_PASSWORD')
+                ]) {
+                    sh '''#!/bin/bash
+                        eval `oidc-agent-service use`
+                        oidc-add infn-cloud-ops
+                        
+                        env
 
-                    # Orchent connection test
-                    orchent depls > depls.output
-                    if cat depls.output | grep -q ERROR
-                    then 
-                        echo "orchent depls: NOT ok" 
-                        cat depls.output 
-                        exit 1
-                    else 
-                        echo "orchent depls: ok" 
-                    fi
+                        # Orchent connection test
+                        orchent depls > depls.output
+                        if cat depls.output | grep -q ERROR
+                        then 
+                            echo "orchent depls: NOT ok" 
+                            cat depls.output 
+                            exit 1
+                        else 
+                            echo "orchent depls: ok" 
+                        fi
 
-                    # Greenbone connection test
-                    /var/lib/jenkins/.local/bin/gvm-cli --gmp-username $GMP_USERNAME --gmp-password $GMP_PASSWD tls --hostname $HOST_IP --xml "<get_version/>"
+                        which gvm-cli
 
-                '''
+                        # Greenbone connection test
+                        /var/lib/jenkins/.local/bin/gvm-cli --gmp-username $GMP_USERNAME --gmp-password $GMP_PASSWD tls --hostname $HOST_IP --xml "<get_version/>"
+
+                    '''
+                }
             }
         }
         stage ('Create test deployment'){