Skip to content
Snippets Groups Projects

Update Jenkinsbuild to use buildagent for project build stage

1 file
+ 16
14
Compare changes
  • Side-by-side
  • Inline
+ 16
14
@@ -109,20 +109,22 @@
stages {
stage('Build Java code') {
steps {
readTrusted 'Makefile'
readTrusted './bin/maxmind.sh'
readTrusted 'mvnw'
readTrusted '.mvn/wrapper/MavenWrapperDownloader.java'
readTrusted 'pom.xml'
withCredentials([string(credentialsId: 'maxmind-license-key', variable: 'MAXMIND_LICENSE_KEY')]) {
sh 'mkdir -p /tmp/maxmind && ./bin/maxmind.sh /tmp/maxmind'
}
sh 'make production-build'
stash includes: 'target/', name: 'target'
dir('/tmp') {
stash includes: 'maxmind/', name: 'maxmind'
container('buildcontainer') {
readTrusted 'Makefile'
readTrusted './bin/maxmind.sh'
readTrusted 'mvnw'
readTrusted '.mvn/wrapper/MavenWrapperDownloader.java'
readTrusted 'pom.xml'
withCredentials([string(credentialsId: 'maxmind-license-key', variable: 'MAXMIND_LICENSE_KEY')]) {
sh 'mkdir -p /tmp/maxmind && ./bin/maxmind.sh /tmp/maxmind'
}
sh 'make production-build'
stash includes: 'target/', name: 'target'
dir('/tmp') {
stash includes: 'maxmind/', name: 'maxmind'
}
}
}
}
Loading