Details
-
Bug
-
Status: Resolved (View Workflow)
-
Blocker
-
Resolution: Fixed
-
None
Description
There are some scenarios where is possible to lose the jobs associated to repositories, branches and pull requests whether Github.com or your GitHub Enterprise instance is unreacheable (or not unavailable).
Attachments
Issue Links
- is duplicated by
-
JENKINS-33045 Branch Project/Jobs get erased
-
- Resolved
-
- links to
Code changed in jenkins
User: Manuel Recena
Path:
src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator.java
src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java
http://jenkins-ci.org/commit/github-branch-source-plugin/38a28e64e3d000f1599645ab10d484edc26df13f
Log:
JENKINS-34776Jobs are removed if the remote is unavailable (#57)JENKINS-34776If an error is found we have to throw an exceptionJENKINS-34776Wrong format messageJENKINS-34776AbortException instead of InterruptedExceptionJENKINS-34776Added a new case for AbortException. Log messages with the same formatJENKINS-34776Replaced an InterruptedException to AbortExceptionJENKINS-34776checkApiUrlValidity() moved to places where we want to verify the connectivity explicitlyJENKINS-34776Removed all newline characters in the messages of AbortExceptionJENKINS-34776I forget to catch the FileNotFoundException when we are managing the Owner