Skip to content

Commit

Permalink
added midpoint-quick-pipeline for quick build after each push
Browse files Browse the repository at this point in the history
  • Loading branch information
virgo47 committed Apr 27, 2022
1 parent 694b5d2 commit e9f3c6b
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions tools/jenkins/midpoint-quick-pipeline
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
podTemplate(
activeDeadlineSeconds: 7200,
idleMinutes: 1,
// No need for secret volume, no mvn deploy done here.
workspaceVolume: dynamicPVC(requestsSize: "10Gi"),
containers: [
containerTemplate(name: 'jnlp',
image: 'jenkins/inbound-agent:4.10-3-alpine',
runAsUser: '0',
resourceLimitCpu: '900m',
resourceLimitMemory: '1Gi',
resourceRequestCpu: '900m',
resourceRequestMemory: '1Gi'),
containerTemplate(name: 'maven',
image: 'maven:3.8.5-openjdk-11-slim',
ttyEnabled: true,
command: 'cat',
resourceLimitCpu: '4',
resourceLimitMemory: '8Gi') // see also -Xmx flag lower
]
) {
node(POD_LABEL) {
stage("checkout") {
git branch: "${BRANCH}",
url: 'https://github.com/Evolveum/midpoint.git'
echo "git checkout done..."
}
stage("build") {
container('maven') {
try {
sh """#!/bin/bash
if [ '${VERBOSE}' = '1' ]
then
env | sort
mvn --version
fi

mvn clean install -Dmaven.test.failure.ignore=true -P -dist -DintegrationTestSuite=fast
"""
} catch (err) {
echo "Caught: ${err}"
currentBuild.result = 'FAILURE'
} finally {
step([$class: 'Publisher', reportFilenamePattern: '**/testng-results.xml'])
}
}
}
}
}

0 comments on commit e9f3c6b

Please sign in to comment.