Create Jenkins Docker Image with pre configured jobs

前端 未结 3 383
渐次进展
渐次进展 2021-02-05 23:11

I have created a bunch of Local deployment pipeline jobs, these jobs do things like remove an existing container, build a service locally, build a docker image, run the containe

3条回答
  •  北荒
    北荒 (楼主)
    2021-02-06 00:00

    I maintain the jobs in a bootstrap folder together with configs etc.

    To add a job (i.e. seedjob) I need to add the following to the Dockerfile:

    # copy seedjob
    COPY bootstrap/seedjob.xml /usr/share/jenkins/ref/jobs/seedjob/config.xml
    

提交回复
热议问题