Home > Mobile >  Jenkins Builds Failing - Failed to connect to repo
Jenkins Builds Failing - Failed to connect to repo

Time:04-27

Let me begin by stating this entire process was set up by a former employee. I understand how to use Jenkins and set up new items, but that is about the extent of my knowledge. Everything has been working fine for years, but about a month ago all builds started failing.

When looking at the configuration for each job I see this message:

Jenkins - Failed to connect to repo

Comparing the console output from successful builds to that of failed builds I also notice some differences. I do not know what they mean though.

A successful build:Success

Then a few days later the same job failed to build. I do think there were plugin updates or something done in between.

Failed Build

Can anyone help me solve this to get our development flow back up and working properly? When files are pushed from Bitbucket it automatically kicks off a Jenkins build which pulls the files into our staging server. Since Jenkins is not working correctly I have to manually FTP any new files to our staging server which takes a lot of time.

CodePudding user response:

It seems that you are missing the credentials for the Github repository. Jenkins as extensive documentation on how you can add a credential secret:

https://www.jenkins.io/doc/book/using/using-credentials/

Here is a simple tutorial for it:

https://www.thegeekstuff.com/2016/10/jenkins-git-setup/#:~:text=Setup Jenkins Credentials for Git&text=To add a credential, click,Use default.

  • Related