forked from overturetool/astcreator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
36 lines (27 loc) · 1.07 KB
/
Jenkinsfile
File metadata and controls
36 lines (27 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
node{
// Mark the code checkout 'stage'....
stage 'Checkout'
//git url: 'git@github.com:lausdahl/astcreator-tryout-pt.git'
checkout scm
// Get some code from a GitHub repository
// git url: 'https://github.com/alvarolobato/maven_test.git'
// Mark the code build
stage 'Clean'
// withMaven(
// maven: 'M3',
// mavenSettingsConfig: 'maven-settings-for-gameoflife',
// mavenLocalRepo: '.repository') {
withMaven(mavenLocalRepo: '.repository', mavenSettingsFilePath: '/var/lib/jenkins/internal-resources/settings.xml') {
// Run the maven build
sh "mvn clean"
}
stage 'Package'
withMaven(mavenLocalRepo: '.repository', mavenSettingsFilePath: '/var/lib/jenkins/internal-resources/settings.xml') {
// Run the maven build
sh "mvn package"
//step([$class: 'ArtifactArchiver', artifacts: '**/target/*.jar', fingerprint: true])
step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*.xml'])
}
stage 'Publish test results'
//junit '**/target/surefire-reports/*.xml'
}