-
Notifications
You must be signed in to change notification settings - Fork 13
/
Jenkinsfile
149 lines (148 loc) · 7.56 KB
/
Jenkinsfile
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
pipeline {
agent any
options {
timestamps()
disableConcurrentBuilds()
}
triggers {
// run every day at ~9pm
cron('H 21 * * *')
// check every 5 minutes for changes to the staging repo's content.jar
URLTrigger(cronTabSpec: 'H/5 * * * *', entries: [URLTriggerEntry(
url: 'https://download.eclipse.org/staging/2024-12/content.jar',
contentTypes: [
MD5Sum()
]
)])
}
tools {
maven 'apache-maven-latest'
jdk 'temurin-jdk21-latest'
}
environment {
BUILDING='/home/data/httpd/download.eclipse.org/technology/epp/building/'
SSHUSER='[email protected]'
MAVEN_OPTS='-XX:MaxRAMPercentage=50.0'
}
stages {
stage('Prepare shared building space on download.e.o') {
steps {
sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
sh "ssh ${SSHUSER} rm -rf ${BUILDING}"
sh "ssh ${SSHUSER} mkdir -p ${BUILDING}/repository"
}
}
}
stage('Build p2') {
steps {
sh "mvn verify -Depp.p2.all -Depp.product.all --batch-mode --show-version -Dmaven.repo.local=.repository -Declipse.p2.mirrors=false -Peclipse-sign-jar -Pepp.p2.aggregation"
sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
sh "scp -rpv releng/org.eclipse.epp.config/aggregation/target/repository/final/* ${SSHUSER}:${BUILDING}/repository/"
}
}
}
// TODO make this a loop/matrix please
// For now I can't use matrix because that runs all in parallel and I don't want that here (I could if each one was on a separate node though)
stage('Build committers') {
steps {
sh "mvn verify -Pepp.product.committers -Pepp.materialize-products -Depp.p2.repourl=https://download.eclipse.org/technology/epp/building/repository/ --batch-mode --show-version -Dmaven.repo.local=.repository -Dtycho.disableP2Mirrors=true -Peclipse-sign-mac -Peclipse-sign-dmg -Peclipse-sign-windows -Peclipse-package-dmg"
sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
sh "./releng/org.eclipse.epp.config/tools/upload-to-building.sh ${BUILDING} committers"
}
}
}
stage('Build cpp') {
steps {
sh "mvn verify -Pepp.product.cpp -Pepp.materialize-products -Depp.p2.repourl=https://download.eclipse.org/technology/epp/building/repository/ --batch-mode --show-version -Dmaven.repo.local=.repository -Dtycho.disableP2Mirrors=true -Peclipse-sign-mac -Peclipse-sign-dmg -Peclipse-sign-windows -Peclipse-package-dmg"
sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
sh "./releng/org.eclipse.epp.config/tools/upload-to-building.sh ${BUILDING} cpp"
}
}
}
stage('Build embedcpp') {
steps {
sh "mvn verify -Pepp.product.embedcpp -Pepp.materialize-products -Depp.p2.repourl=https://download.eclipse.org/technology/epp/building/repository/ --batch-mode --show-version -Dmaven.repo.local=.repository -Dtycho.disableP2Mirrors=true -Peclipse-sign-mac -Peclipse-sign-dmg -Peclipse-sign-windows -Peclipse-package-dmg"
sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
sh "./releng/org.eclipse.epp.config/tools/upload-to-building.sh ${BUILDING} embedcpp"
}
}
}
stage('Build dsl') {
steps {
sh "mvn verify -Pepp.product.dsl -Pepp.materialize-products -Depp.p2.repourl=https://download.eclipse.org/technology/epp/building/repository/ --batch-mode --show-version -Dmaven.repo.local=.repository -Dtycho.disableP2Mirrors=true -Peclipse-sign-mac -Peclipse-sign-dmg -Peclipse-sign-windows -Peclipse-package-dmg"
sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
sh "./releng/org.eclipse.epp.config/tools/upload-to-building.sh ${BUILDING} dsl"
}
}
}
stage('Build java') {
steps {
sh "mvn verify -Pepp.product.java -Pepp.materialize-products -Depp.p2.repourl=https://download.eclipse.org/technology/epp/building/repository/ --batch-mode --show-version -Dmaven.repo.local=.repository -Dtycho.disableP2Mirrors=true -Peclipse-sign-mac -Peclipse-sign-dmg -Peclipse-sign-windows -Peclipse-package-dmg"
sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
sh "./releng/org.eclipse.epp.config/tools/upload-to-building.sh ${BUILDING} java"
}
}
}
stage('Build jee') {
steps {
sh "mvn verify -Pepp.product.jee -Pepp.materialize-products -Depp.p2.repourl=https://download.eclipse.org/technology/epp/building/repository/ --batch-mode --show-version -Dmaven.repo.local=.repository -Dtycho.disableP2Mirrors=true -Peclipse-sign-mac -Peclipse-sign-dmg -Peclipse-sign-windows -Peclipse-package-dmg"
sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
sh "./releng/org.eclipse.epp.config/tools/upload-to-building.sh ${BUILDING} jee"
}
}
}
stage('Build modeling') {
steps {
sh "mvn verify -Pepp.product.modeling -Pepp.materialize-products -Depp.p2.repourl=https://download.eclipse.org/technology/epp/building/repository/ --batch-mode --show-version -Dmaven.repo.local=.repository -Dtycho.disableP2Mirrors=true -Peclipse-sign-mac -Peclipse-sign-dmg -Peclipse-sign-windows -Peclipse-package-dmg"
sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
sh "./releng/org.eclipse.epp.config/tools/upload-to-building.sh ${BUILDING} modeling"
}
}
}
stage('Build php') {
steps {
sh "mvn verify -Pepp.product.php -Pepp.materialize-products -Depp.p2.repourl=https://download.eclipse.org/technology/epp/building/repository/ --batch-mode --show-version -Dmaven.repo.local=.repository -Dtycho.disableP2Mirrors=true -Peclipse-sign-mac -Peclipse-sign-dmg -Peclipse-sign-windows -Peclipse-package-dmg"
sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
sh "./releng/org.eclipse.epp.config/tools/upload-to-building.sh ${BUILDING} php"
}
}
}
stage('Build rcp') {
steps {
sh "mvn verify -Pepp.product.rcp -Pepp.materialize-products -Depp.p2.repourl=https://download.eclipse.org/technology/epp/building/repository/ --batch-mode --show-version -Dmaven.repo.local=.repository -Dtycho.disableP2Mirrors=true -Peclipse-sign-mac -Peclipse-sign-dmg -Peclipse-sign-windows -Peclipse-package-dmg"
sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
sh "./releng/org.eclipse.epp.config/tools/upload-to-building.sh ${BUILDING} rcp"
}
}
}
stage('Build scout') {
steps {
sh "mvn verify -Pepp.product.scout -Pepp.materialize-products -Depp.p2.repourl=https://download.eclipse.org/technology/epp/building/repository/ --batch-mode --show-version -Dmaven.repo.local=.repository -Dtycho.disableP2Mirrors=true -Peclipse-sign-mac -Peclipse-sign-dmg -Peclipse-sign-windows -Peclipse-package-dmg"
sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
sh "./releng/org.eclipse.epp.config/tools/upload-to-building.sh ${BUILDING} scout"
}
}
}
stage('Upload to staging') {
steps {
sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
sh "./releng/org.eclipse.epp.config/tools/upload-to-staging.sh"
}
}
}
}
post {
failure {
emailext (
subject: "FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'",
body: """FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]':
Check console output at ${env.BUILD_URL}""",
recipientProviders: [[$class: 'DevelopersRecipientProvider']],
to: '[email protected]'
)
}
cleanup {
cleanWs()
}
}
}