반응형

- 빌드할 때, 파라미터에 따라 유연하게 빌드하기 위함. (e.g. python 버전을 3버전할지, 2버전할지)


젠킨스 문법

https://www.jenkins.io/doc/book/pipeline/syntax/



docker,
on a docker,


Parameters 파트
params 오브젝트에의해서 만들어짐.


Example 10. Parameters, Declarative Pipeline


keyword
docker

파이프라인, stage 주어진 컨테이너로,
그 컨테이너는 사전에 구성된 어떤 노드 위에서 동적으로 제공된 거임.

Declarative Pipeline
Declarative Pipeline is a relatively recent addition to Jenkins Pipeline [1] which presents a more simplified and opinionated syntax on top of the Pipeline sub-systems.

All valid Declarative Pipelines must be enclosed within a pipeline block, for example:

pipeline {
/* insert Declarative Pipeline here */
}


agent
The agent section specifies where the entire Pipeline, or a specific stage, will execute in the Jenkins environment depending on where the agent section is placed. The section must be defined at the top-level inside the pipeline block, but stage-level usage is optional.

반응형