jx
jx copied to clipboard
jx-preview-gc-jobs is not working with Bitbucket Server configuration
jx-preview-gc-jobs is not able to delete any preview namespace for Bitbucket Server configuration
Logs:
DEBUG: using the plugin command: /root/.jx/plugins/bin/jx-gitops-0.3.12 git setup --namespace jx --secret tekton-git --git-provider https://bitbucket.my-company.org
WARNING: could not default pipeline user/email from requirements as file does not exist: jx-requirements.yml
DEBUG: secret tekton-git in namespace jx does not have a url entry
DEBUG: about to run: git config --global --add user.name ci.user in dir .
DEBUG: about to run: git config --global --add user.email [email protected] in dir .
setup git user email [email protected]
DEBUG: about to run: git config --global credential.helper store in dir /root
generated Git credentials file: /home/git/credentials with username: ci.user email:
destroying preview: sen-my-repo-pr-98 in namespace jx
error: failed to destroy preview environment sen-my-repo-pr-98: failed to git clone preview source: failed to clone repository https://bitbucket.my-company.org/projects/SEN/repos/my-repo/browse to directory: /tmp/jx-git-795827564: failed to run 'git clone https://bitbucket.my-company.org/projects/SEN/repos/my-repo/browse /tmp/jx-git-795827564' command in directory '/tmp', output: 'Cloning into '/tmp/jx-git-795827564'...
fatal: unable to update url base from redirection:
asked for: https://bitbucket.my-company.org/projects/SEN/repos/my-repo/browse/info/refs?service=git-upload-pack
redirect: https://bitbucket.my-company.org/login?next=/projects/SEN/repos/my-repo/browse/info/refs?service%3Dgit-upload-pack'
/assign
jx-preview is on an old version of go-scm, updating it, and then seeing if that helps (changes for bitbucket and gitlab exist in newer version): https://github.com/jenkins-x-plugins/jx-preview/pull/349
@ankitm123 have you released this update anywhere? Does it solve the problem?