Skip to content

Commit

Permalink
test commit
Browse files Browse the repository at this point in the history
  • Loading branch information
yankils committed May 16, 2020
1 parent 465d9ff commit 23e7f6b
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions jenkins/DSL_jobs/jobs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
job('maven_dsl') {

description('Maven dsl project')

scm {
git('https://github.com/jenkins-docs/simple-java-maven-app', 'master', {node -> node / 'extensions' << '' })
}

steps {
maven {
mavenInstallation('maven')
goals('-B -DskipTests clean package')
}
maven {
mavenInstallation('maven')
goals('test')
}
shell('''
echo ************RUNNING THE JAR************************
java -jar /var/lib/jenkins/workspace/maven_dsl/target/my-app-1.0-SNAPSHOT.jar
''')
}

publishers {
archiveArtifacts('target/*.jar')
archiveJunit('target/surefire-reports/*.xml')
mailer('[email protected]', true, true)
}
}

0 comments on commit 23e7f6b

Please sign in to comment.