skip to Main Content

I have been beating my head on this for some time, and I am hoping that someone can point me in the right direction.

I have (what is currently) an up to date version of Jenkins 2.224 running on Centos 7. I have the git plugin installed and up to date at v4.2.1. All plugins are up to date.

I have created a freestyle job, and am attempting to have it poll git SCM. I put the URL and creds in, and Jenkins seems happy. I click ‘apply’ and then ‘save’. Now, if I open the job again, the SCM section is back to ‘none’. OK… What?

I have checked the Jenkins logs, but found only shutdown and start up messages.
I checked the tomcat logs, but found nothing that looks helpful… at least to me.
I checked for system messages, and found nothing.
I opened the job location files and poked around. I found the ‘scm-polling.log’ but nothing interesting in there. It worked once I guess… but the config.xml scm section is just:

  <scm class="hudson.scm.NullSCM"/>

I found an example of the config.xml with a git section, and I edited that, and paste it in my job’s config.xml. Now, the job definition in Jenkins shows the git config… cool… I guess… BUT, when I changed the number of builds to retain (I changed no part of the git config), the git section is removed again.

Anyone have any idea what is causing this?
Is there a log I failed to find that might hold the error?

2

Answers


  1. Chosen as BEST ANSWER

    Today, they released Jenkins v2.225, and a git plugin update. After that, this problem went away.


  2. I had the same mistake. I think it has to do with the Jenkins.war version 2.224. At least the error doesn’t occur anymore if you install or switch back to version 2.223.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search