0

We have the following Jenkins pipeline script.

pipeline {
    agent any 
    stages {
        stage('Run in Sandbox'){
            steps {
                dir('Pot') {
                    checkout scmGit(branches: [[name: '*/main']], userRemoteConfigs: [[credentialsId: 'Innovation_Git_User', url: 'https://git.sipi.net/innovation/pot.git']])
                } 
                dir('Utilities') {
                    checkout scmGit(branches: [[name: '*/master']], userRemoteConfigs: [[credentialsId: 'Test_Automation_User', url: 'https://git.ipi.net/test/UtilityScripts.git']])
                }
            }
        }
    }
}

We received an 'HTTP Basic: Access denied' message. Interestingly, each checkout command runs smoothly on its own, so we're confident that the credentials are correct. We’d really appreciate any guidance or suggestions you might have. Thank you!

1
  • Can you share your full error message it looks like the first credentials is being cached and used to checkout the second repo as well. Commented 6 hours ago

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.