1. terminology
- node: a machine that's capable of executing pipelines or jobs, both controller and agent(slave) are node
- executor: more like a work thread on a node
- workspace: a directory on the node where pipeline or job is run
- pipeline vs job: pipeline is more powerful and flexible, pipeline is defined using DSL as jenkinsfile in source code repo
- reuseNode true: same agent node and Docker container are used for all stages of the pipeline, and the workspace directory remains the same across all stages
2, use a dockerfile
- agent { dockerfile true }
- create dockerfile and put in root of source repo
reference
1. glossary
2. use docker
No comments:
Post a Comment