How to save Jenkins configuration?

前端 未结 3 1458
逝去的感伤
逝去的感伤 2021-01-22 00:04

Is there any way to save a pipeline configuration or an item configuration in Git or anywhere else, so that when my Jenkins machine is crashed, i can migrate the saved configur

3条回答
  •  礼貌的吻别
    2021-01-22 00:44

    Hi you can write the pipeline script in file and publish that file into the git.

    After that just create the pipeline job in the jenkins and use Pipeline script from SCM option for pipeline script.

    The other option is take backup of Jenkins home directory to external hard disk(keep project workspace outside the jenkins home to reduce backup size).

提交回复
热议问题