I have a simple bitbucket pipeline config that looks like this:
pipelines:
default:
- step:
script:
- ./scripts/mirrorRepoAndTriggerBuild.sh
# So that we can run the pipeline in the BB UI
custom:
trigger-build:
- step:
script:
- ./scripts/mirrorRepoAndTriggerBuild.sh
That script is now failing on this line:
git clone --mirror https://$BITBUCKET_USER:$BITBUCKET_PASS@bitbucket.org/leadiq/leadiq-play.git
Those are environment variables set in the repo. This script has worked up until the past week or so. Now, I'm getting this error in the pipeline:
<span>+ <a href="https://bitbucket.org/leadiq/leadiq-play/src/3d59c39a858a5b267fd89da6f5fa47ffdf58b7dc/scripts/mirrorRepoAndTriggerBuild.sh" target="_blank" rel="noopener noreferrer">./scripts/mirrorRepoAndTriggerBuild.sh</a></span><span>Creating bare clone...</span><span>Cloning into bare repository 'leadiq-play.git'...</span><span>remote: Invalid username or password. If you log in via a third party service you must ensure you have an account password set in your account profile.</span><span>fatal: Authentication failed for '<a href="https://%24BITBUCKET_USER:%24GITLAB_PASS@bitbucket.org/leadiq/leadiq-play.git/" target="_blank" rel="nofollow noopener noreferrer">https://$BITBUCKET_USER:$GITLAB_PASS@bitbucket.org/leadiq/leadiq-play.git/</a>'</span>
Note that the wrong variables are being associated with that git clone command.
Can someone point me in the right direction here?
Thanks!