- copy your groovy scripts and Jenkins pipeline files under
groovy
andpipelines
folder. - update plugins list if you added or removed any plugin.
Run groovy script in Jenkins Script console to see latest installed plugin list.
- build docker image under
build folder
/build$ docker build -t <image>:<tag> .