Skip to content
Snippets Groups Projects

feat: Standardize build process

3 files
+ 68
17
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 2
2
@Library('common-shared') _
@Library('common-shared') _
pipeline {
pipeline {
agent {
agent {
@@ -108,6 +108,7 @@ pipeline {
@@ -108,6 +108,7 @@ pipeline {
container('buildcontainer') {
container('buildcontainer') {
readTrusted 'Makefile'
readTrusted 'Makefile'
readTrusted 'pom.xml'
readTrusted 'pom.xml'
 
readTrusted 'package.json'
sh 'make compile'
sh 'make compile'
stash name: "target", includes: "target/**/*"
stash name: "target", includes: "target/**/*"
}
}
@@ -120,7 +121,6 @@ pipeline {
@@ -120,7 +121,6 @@ pipeline {
}
}
steps {
steps {
readTrusted 'src/main/docker/Dockerfile.jvm'
readTrusted 'src/main/docker/Dockerfile.jvm'
unstash 'target'
unstash 'target'
sh '''
sh '''
docker build -f src/main/docker/Dockerfile.jvm --no-cache -t ${IMAGE_NAME}:${TAG_NAME} -t ${IMAGE_NAME}:latest .
docker build -f src/main/docker/Dockerfile.jvm --no-cache -t ${IMAGE_NAME}:${TAG_NAME} -t ${IMAGE_NAME}:latest .
Loading