Job DSL

Job DSL

folder("KCDC/03.Advanced/test_folder") { }

pipelineJob('KCDC/03.Advanced/test_folder/simple_pipeline') {
displayName('simple_pipeline')
description('simple_pipeline')
        definition {
                cpsScm {
                        scm {
                        git {
                                remote {
	                                url('https://github.com/nrayapati/kcdc_test.git')
    	                            branch('master')
                                }
                            }
                        }
                    }
                }
   	triggers {
        	githubPush()
    		 }
        properties {
                buildDiscarder {
                        strategy {
                                logRotator {
                                        artifactDaysToKeepStr('2')
                                        artifactNumToKeepStr('2')
                                        daysToKeepStr('2')
                                        numToKeepStr('2')
                                }
                        }
                }
        }
}