Running Pipeline On Specific Agent

Edit Jenkinsfile on Github with following content, basically this code will force pipeline to only running on Windows_Agent

// start of pipelinepipeline { // where pipeline job will run agent { // force pipeline job to running on windows_agent label "Windows_Agent" } // start of stages : build, test, deploy ... stages { // start of stage : build stage('build') { // start of running steps inside one stage steps { // invoke command to build with maven bat 'mvn clean install' } } } }

Click to Commit changes

You will see GOL_Pipeline automatically run due to it saw code change from Github

And from Console Output, you can see that GOL_Pipeline job is running with “Windows_Agent”

results matching ""

    No results matching ""