Open ElectricWarr opened 1 year ago
New day, also tried with a Repository Access Token and still no luck
Update: after going through the source with a fine-toothed comb I've got it working! Specifying bitbucketcloud
as the scm-type
is always broken, I'll update this issue to reflect that.
If anyone's reading this and has the same problem, use bitbucket
as your scm-type
instead (and make sure your API Token is a Repostiry/Project/Workspace Access Token), it should work 👍
let's document this workaround for now
/kind documentation
Expected Behaviour
Configuring remote pipeline resolution to point to a Pipeline manifest file stored in a private repo in Bitbucket Cloud results in a PipelineRun based on the specified Pipeline.
Actual Behavior
PipelineRuns fail with the following
CouldntGetPipeline
error:This error is emitted by
resolver.go
at line 156.no username supplied
comes from the JenkinsXgo-scm
factory at line 168, and the root cause appears to be that Tekton never calls thego-scm
factory'sSetUsername
function even though this appears to be required.Setting the
scm-type
tobitbucket
instead ofbitbucketcloud
and using a Repository, Project, or Workspace Access Token seems to be a reasonable workaround, as this avoids theclient.Username
check above.Additional Info
Kubernetes version:
Output of
kubectl version
:Tekton Pipeline version:
Output of
tkn version
orkubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller -o=jsonpath='{.items[0].metadata.labels.version}'