简体   繁体   中英

Can I write my Jenkins pipelines as Yaml instead of groovy?

I want to write and configure my Jenkins pipelines using code like I would do in tools like concourse or Drone. The idea is not to leave it into UI driven configurations which I have to do even if I use groovy for a lot of it.

If you are open to using a Jenkins library, wolox-ci will handle what you are looking for. You will still need a Jenkinsfile, but it will be reduced to this:

@Library('wolox-ci') _

node {

  checkout scm

  woloxCi('.woloxci/config.yml');
}

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