import groovy.json.JsonSlurper

String basePath = 'grails_jenkins_job_dsl_sample'
String repo = 'marhan/grails_jenkins_job_dsl_sample'

folder(basePath) {
    description 'This example shows basic folder/job creation.'
}

job("$basePath/grails_build") {
    scm {
        github repo
    }
    triggers {
        scm 'H/5 * * * *'
    }
    steps {
        grails {
            useWrapper false
            name 'grails-3.0.12'
            targets(['test-app', 'war'])
        }
    }
}

import groovy.json.JsonSlurper

String basePath = 'grails_jenkins_job_dsl_sample'
String repo = 'marhan/grails_jenkins_job_dsl_sample'

folder(basePath) {
    description 'This example shows basic folder/job creation.'
}

job("$basePath/grails_build") {
    scm {
        github repo
    }
    triggers {
        scm 'H/5 * * * *'
    }
    steps {
        grails {
            useWrapper false
            nonInteractive true
            name 'grails-3.0.12'
            targets(['test-app', 'package'])
        }
    }
}

Reduce output on console and build all artifacts.
Reduce output on console and build all artifacts.
