forked from apache/incubator-kie-kogito-runtimes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile.quarkus
79 lines (78 loc) · 3.61 KB
/
Jenkinsfile.quarkus
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
@Library('jenkins-pipeline-shared-libraries')_
pipeline {
agent {
label 'kie-rhel7 && kie-mem16g'
}
environment {
KOGITO_CI_EMAIL_TO = credentials('KOGITO_CI_EMAIL_TO')
MAVEN_OPTS = '-Xms1024m -Xmx4g'
}
tools {
maven 'kie-maven-3.6.2'
jdk 'kie-jdk11'
}
triggers {
cron ('H 10 * * *')
}
options {
buildDiscarder logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '5')
timeout(time: 120, unit: 'MINUTES')
}
stages {
stage('Build quarkus') {
steps {
checkout([$class: 'GitSCM', branches: [[name: 'master']], browser: [$class: 'GithubWeb', repoUrl: '[email protected]:quarkusio/quarkus.git'], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'quarkus']], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'kie-ci-user-key', url: '[email protected]:quarkusio/quarkus.git']]])
dir("quarkus") {
script {
maven.runMavenWithSubmarineSettings('clean install', true)
}
}
}
}
stage('Build kogito-runtimes') {
steps {
script {
maven.runMavenWithSubmarineSettings('clean install -Dversion.io.quarkus=999-SNAPSHOT', false)
}
}
}
stage('Build kogito-apps') {
steps {
checkout([$class: 'GitSCM', branches: [[name: env.BRANCH_NAME]], browser: [$class: 'GithubWeb', repoUrl: '[email protected]:kiegroup/kogito-apps.git'], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'kogito-apps']], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'kie-ci-user-key', url: '[email protected]:kiegroup/kogito-apps.git']]])
dir("kogito-apps") {
script {
maven.runMavenWithSubmarineSettings('clean install', false)
}
}
}
}
stage('Build kogito-examples') {
steps {
checkout([$class: 'GitSCM', branches: [[name: env.BRANCH_NAME]], browser: [$class: 'GithubWeb', repoUrl: '[email protected]:kiegroup/kogito-examples.git'], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'kogito-examples']], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'kie-ci-user-key', url: '[email protected]:kiegroup/kogito-examples.git']]])
dir("kogito-examples") {
script {
maven.runMavenWithSubmarineSettings('clean install -Dversion.io.quarkus=999-SNAPSHOT', false)
}
}
}
}
}
post {
failure {
emailext body: 'Kogito daily Quarkus master #${BUILD_NUMBER} was: ' + "${currentBuild.currentResult}" + '\n' +
'Please look here: ${BUILD_URL} ',
subject: 'Kogito daily Quarkus master',
to: env.KOGITO_CI_EMAIL_TO
}
unstable {
emailext body: 'Kogito daily Quarkus master #${BUILD_NUMBER} was: ' + "${currentBuild.currentResult}" + '\n' +
'Please look here: ${BUILD_URL} ',
subject: 'Kogito daily Quarkus master',
to: env.KOGITO_CI_EMAIL_TO
}
always {
junit '**/target/surefire-reports/**/*.xml, **/target/failsafe-reports/**/*.xml'
cleanWs()
}
}
}