Where does Jenkins store configuration files for the jobs it runs?

后端 未结 6 1726
攒了一身酷
攒了一身酷 2020-12-12 15:42

I\'m adding continuous integration to an EC2 project at work using Jenkins. The Jenkins machine itself is kept on an EC2 machine - one that might need to be taken offline an

相关标签:
6条回答
  • 2020-12-12 16:00

    Jenkins stores the configuration for each job within an eponymous directory in jobs/. The job configuration file is config.xml, the builds are stored in builds/, and the working directory is workspace/. See the Jenkins documentation for a visual representation and further details.

    0 讨论(0)
  • 2020-12-12 16:05

    Jenkins 1.627, OS X 10.10.5 /Users/Shared/Jenkins/Home/jobs/{project_name}/config.xml

    0 讨论(0)
  • Am adding few things related to jenkins configuration files storage.

    As per my understanding all config file stores in the machine or OS that you have installed jenkins.

    The jobs you are going to create in jenkins will be stored in jenkins server and you can find the config.xml etc., here.

    After jenkins installation you will find jenkins workspace in server.

    *cd>jenkins/jobs/`
    cd>jenkins/jobs/$ls
       job1 job2 job3 config.xml ....*
    
    0 讨论(0)
  • 2020-12-12 16:12

    The best approach would be to keep your job configurations in a Jenkinsfile that live in source control.

    0 讨论(0)
  • 2020-12-12 16:14

    On Linux one can find the home directory of Jenkins looking for a file, that Jenkins' home contains, e.g.:

    $ find / -name "config.xml" | grep "jenkins"
    /var/lib/jenkins/config.xml
    
    0 讨论(0)
  • 2020-12-12 16:14

    For the sake of completeness: macOS High Sierra, Jenkins 2.x, installation via Homebrew
    ~/.jenkins/jobs/{project_name}/config.xml

    Complete overview about jenkins home: https://wiki.jenkins.io/display/JENKINS/Administering+Jenkins

    0 讨论(0)
提交回复
热议问题