Keval Patel
Keval Patel

Reputation: 995

Private Bitbucket repository not creating packages in Jenkins

I am trying to generate package in Jenkins with poll SCM (* * * * *) mechanism. If I keep my repository public, and if I commit any changes from visual studio to bitbucket, It is creating packages in Jenkins (Still I need to click on Build Now option in Jenkins).

If I make my repository private, and if I commit any changes from visual studio to bitbucket, It's giving me timeout error in build console and url not able to access in configuration.

Public repository (Working), public

Private repository (Not working), private

What changes I need to make in configuration to make it work.

Upvotes: 0

Views: 149

Answers (1)

seenukarthi
seenukarthi

Reputation: 8682

The problem is you git url. Since you are passing the credentials in the url itself you have to URL encode the username and the password.

But since you are configuring the credentials in the credentials section you can remove the username and password from the url Jenkins's git client will take care of passing the credentials.

Upvotes: 0

Related Questions