简体   繁体   中英

How to hardcode Jenkins job configuration file

I need to create job in Jenkins. But I don't have the configurations XML with all the plugins information with me. I want to hard-code the XML. Please help me understanding the XML sheet tags. And also please help me with a XML sheet having a demo project with few plugins like GIT, Ant, Sonarqube.

TIA.

In general, there's no documentation for the job config XML , so it is best to proceed as follows:

  1. create a sample job manually via the GUI , then
  2. understand that job's XML code -- it will be easy to match it with the job's configuration.

In some rare cases, the job configuration is scattered among several XML files (one example that I'm aware of is the Promoted Builds plugin ). This will require special handling when operating on XML level.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM