Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move all jobs into a single parent folder #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions jobs/example1Jobs.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
String basePath = 'example1'
String basePath = 'job-dsl-gradle-example/example1'
String repo = 'sheehan/grails-example'

folder(basePath) {
Expand Down Expand Up @@ -27,4 +27,4 @@ job("$basePath/grails-example-deploy") {
steps {
shell 'scp war file; restart...'
}
}
}
4 changes: 2 additions & 2 deletions jobs/example2Jobs.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import groovy.json.JsonSlurper

String basePath = 'example2'
String basePath = 'job-dsl-gradle-example/example2'
String repo = 'sheehan/grails-example'

folder(basePath) {
Expand Down Expand Up @@ -35,4 +35,4 @@ branches.each { branch ->
shell 'scp war file; restart...'
}
}
}
}
4 changes: 2 additions & 2 deletions jobs/example3Jobs.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
String basePath = 'example3'
String basePath = 'job-dsl-gradle-example/example3'

folder(basePath) {
description 'This example shows how to use the configure block.'
Expand All @@ -23,4 +23,4 @@ job("$basePath/configure-block-example") {
resultOnFailure 'FAILURE'
}
}
}
}
4 changes: 2 additions & 2 deletions jobs/example4Jobs.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
String basePath = 'example4'
String basePath = 'job-dsl-gradle-example/example4'

folder(basePath) {
description 'This example shows a way to reuse job definitions for jobs that differ only with a few properties.'
Expand Down Expand Up @@ -28,4 +28,4 @@ folder(basePath) {
}
}
}
}
}
2 changes: 1 addition & 1 deletion jobs/example5Jobs.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import com.dslexample.StepsUtil

String basePath = 'example5'
String basePath = 'job-dsl-gradle-example/example5'

folder(basePath) {
description 'This example shows how to pull out common components into static methods.'
Expand Down
2 changes: 1 addition & 1 deletion jobs/example6Jobs.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
String basePath = 'example6'
String basePath = 'job-dsl-gradle-example/example6'

folder(basePath) {
description 'This example shows how to include script resources from the workspace.'
Expand Down
4 changes: 2 additions & 2 deletions jobs/example7Jobs.groovy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import com.dslexample.GradleCiJobBuilder
import com.dslexample.GrailsCiJobBuilder

String basePath = 'example7'
String basePath = 'job-dsl-gradle-example/example7'
List developers = ['[email protected]', '[email protected]']

folder(basePath) {
Expand All @@ -27,4 +27,4 @@ new GradleCiJobBuilder(
description: 'Example job description',
ownerAndProject: 'myorg/project3',
tasks: 'clean test'
).build(this)
).build(this)
10 changes: 8 additions & 2 deletions jobs/seed.groovy
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
// If you want, you can define your seed job in the DSL and create it via the REST API.
// See https://github.com/sheehan/job-dsl-gradle-example#rest-api-runner

job('seed') {
String basePath = 'job-dsl-gradle-example'

folder(basePath) {
description 'Examples for Job DSL with Gradle build'
}

job("$basePath/seed") {
scm {
github 'sheehan/job-dsl-gradle-example'
}
Expand All @@ -18,4 +24,4 @@ job('seed') {
publishers {
archiveJunit 'build/test-results/**/*.xml'
}
}
}