forked from kakwa/talend-codegen
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathJenkinsfile
More file actions
28 lines (28 loc) · 664 Bytes
/
Copy pathJenkinsfile
File metadata and controls
28 lines (28 loc) · 664 Bytes
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
pipeline {
agent {
dockerfile {
args '-v ${HOME}/.m2:/home/builder/.m2 -v ${HOME}/bin:${HOME}/bin'
additionalBuildArgs '--build-arg BUILDER_UID=$(id -u)'
}
}
stages {
stage('clean') {
steps {
sh 'git reset --hard'
sh 'git clean -xffd'
}
}
stage('package') {
steps {
sh 'mvn clean package'
}
}
}
post {
success {
dir('target/') {
archiveArtifacts artifacts: '*.jar', fingerprint: true, onlyIfSuccessful: true
}
}
}
}