forked from metaborg/sdf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
22 lines (21 loc) · 788 Bytes
/
Copy pathJenkinsfile
File metadata and controls
22 lines (21 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
properties([
pipelineTriggers([
upstream(
threshold: hudson.model.Result.SUCCESS,
upstreamProjects: '/metaborg/spoofax-releng/master'
)
])
])
node{
stage 'Build and Test'
checkout scm
sh "git clean -fXd" // make sure generated files are removed (git-ignored files). Use "-fxd" to also remove untracked files, but note that this will also remove .repository forcing mvn to download all artifacts each build
withMaven(
mavenLocalRepo: '.repository',
mavenOpts: '-Xmx1024m -Xss16m'
){
// Run the maven build
sh "mvn -B -U clean verify -DforceContextQualifier=\$(date +%Y%m%d%H%M) "
}
archiveArtifacts artifacts: 'org.metaborg.meta.lang.template.eclipse.site/target/site/', excludes: null, onlyIfSuccessful: true
}