Jenkins Job disappeared after restart

后端 未结 2 374
一生所求
一生所求 2021-01-18 01:44

I have this strange problem in Jenkins 1.5.31 .

I had configured Maven jobs which I still see in Jenkins_Home directory. My Jenkins Windows service was not getting s

2条回答
  •  醉话见心
    2021-01-18 02:19

    After Jenkins restarts, there is the case when some jobs are missing if the syntax in their config.xml contains errors.

    1. Check Jenkins logs for errors (Manage Jenkins/System Log)
    2. Fix the errors in config.xml of each job. ( path: JENKINS_HOME/jobs//config.xml)
    3. Restart jenkins or choose option reload configurations from disk (Manage Jenkins/Reload Configuration from Disk).

    When all errors are fixed the job should appear. You can validate your configurations against some online tool, f.e.: https://www.xmlvalidation.com/

    Another case is when all Jenkins jobs are missing and an empty dashboard is loaded. This indicates that Jenkins home directory is wrong, so make sure to specify JENKINS_HOME correctly and restart Jenkins.

提交回复
热议问题