Skip to content

Latest commit

 

History

History
53 lines (45 loc) · 1.65 KB

PIPELINE_SCRIPT.md

File metadata and controls

53 lines (45 loc) · 1.65 KB

Pipeline as DSL script Jenkins code

Go to manage Jenkins -> manage plugins -> tab available ->filter Pipeline
Tick pipeline: declarative tick pipeline: stage view and press install without restart
Go to New Item
Type a name hello-world-pipeline
Select Pipeline and press ok

First Jenkins DSL script

set build trigger
Tick Github hook trigger ....
Go to Pipeline
Definition Select Pipeline script from SCM
SCM git
Enter the hello-world github repo url
in goland copy and paste the source from the file build-hello-world-pipeline to Jenkinsfile Script path: Jenkinsfile

Check the job and log file Jenkins_perf

Other script

Procede with the other scripts
build-hello-world-checkstyle-pipeline copy/paste to Jenkinsfile commit/push

Pipeline as DSL script Jenkins code

Go to manage Jenkins -> manage plugins -> tab available ->filter Pipeline
Tick Pipeline: Declarative and press install without restart
Tick Pipeline: Stage view and press install without restart Go to New Item
Type a name hello-world-pipeline
Select Pipeline and press ok

First Jenkins DSL script

set build trigger
Tick Github hook trigger ....
Go to Pipeline
Definition Select Pipeline script from SCM
SCM git
Enter the hello-world github repo url
in goland copy and paste the source from the file build-hello-world-pipeline to Jenkinsfile Script path: Jenkinsfile

Check the job and log file Jenkins_perf

Other script

Procede with the other scripts
build-hello-world-checkstyle-pipeline copy/paste to Jenkinsfile commit/push