To use the pipeline in Jenkins, there are several plugins. In this project, I'm going to use Job DSL to build the Jenkins jobs as a code.
-
Install plugins
-
Security option You will see error related to the security when you build Job DSL scripts. You can allow them one by one after checking in
Manage Jenkins > Security > In-process Script Approval
However, in this example, I'm going to use the simple option to disable this issue. Enter toManage Jenkins > Security > Configure Global Security > CSRF Protection
and disableEnable script security for Job DSL scripts
.
Keep in mind this option can be seen after v1.6.0
Category | Example |
---|---|
Set up the Job DSL | Create Job DSL build Job |
Job DLS structure | Create simple pipeline job |
Jenkins Agent | Kubernetes dynamic agent provisioning |
Pipeline examples | Gatling Test Job - Declarative pipeline |
Gatling Test Job with docker container |