Permalink
Browse files

adding example

  • Loading branch information...
1 parent 16b64ab commit 498d6786603344a2769ae7ddd75a2dac53dc5217 @narkisr committed Jan 3, 2013
Showing with 32 additions and 0 deletions.
  1. +19 −0 example/build.gradle
  2. +13 −0 example/src/main/groovy/jobs/Liquibase.groovy
View
@@ -0,0 +1,19 @@
+apply plugin: 'jenkins'
+
+
+buildscript {
+ repositories {
+ mavenCentral()
+ mavenLocal()
+ maven {
+ url 'http://repo.jenkins-ci.org/releases'
+ }
+
+ flatDir { dirs '../lib' }
+
+ }
+
+ dependencies {
+ classpath group: 'com.narkisr', name: 'jenkins-jobs', version: '0.1'
+ }
+}
@@ -0,0 +1,13 @@
+job(name:'liquibase'){
+
+ slave(name:'jenkins-slave')
+
+ scm {
+ url('vagrant@jenkins-master:/home/vagrant/repos/jenkins-jobs-bare')
+ }
+
+ steps {
+ gradle(version: '1.0', tasks: 'clean')
+ gradle(version: '1.0', tasks: 'build')
+ }
+}

0 comments on commit 498d678

Please sign in to comment.