Skip to content

Commit 4e3b63f

Browse files
committed
[Build] Fix git URLs and reduce mail notification in Docker image build
- Update to jdt.core git repository at Github - Don't send mails on success only on failure and only to the mailing-list and not specific people - Build only once per week (if a recent change is needed a build is triggered manually any ways) - Delete complete workspace content after the build
1 parent 811332d commit 4e3b63f

File tree

2 files changed

+7
-33
lines changed

2 files changed

+7
-33
lines changed

JenkinsJobs/Builds/DockerImagesBuild.jenkinsfile

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,19 @@ pipeline {
55
disableConcurrentBuilds(abortPrevious: true)
66
timestamps()
77
}
8+
triggers {
9+
cron '@weekly'
10+
}
811
agent {
912
label 'docker-build'
1013
}
1114
stages {
12-
stage('Clean workspace') {
13-
steps {
14-
sh '''#!/bin/bash -x
15-
docker images
16-
docker system prune -a -f
17-
cd ${WORKSPACE}
18-
rm -rf *
19-
'''
20-
}
21-
}
2215
stage('Get Docker Files') {
2316
steps {
17+
cleanWs()
2418
sh '''
2519
git clone -b master https://github.com/eclipse-platform/eclipse.platform.releng.aggregator.git
26-
git clone -b master https://git.eclipse.org/r/jdt/eclipse.jdt.core.git
20+
git clone -b master https://github.com/eclipse-jdt/eclipse.jdt.core
2721
'''
2822
}
2923
}
@@ -73,22 +67,15 @@ pipeline {
7367
}
7468
}
7569
post {
76-
success {
77-
emailext body: "Container images used for testing eclipse platform - Build Successful. Please go to ${BUILD_URL}console and check the log",
78-
subject: "Container images - Build Successful",
79-
80-
81-
}
82-
8370
unsuccessful {
8471
emailext body: "Container images used for testing eclipse platform - Build Unsuccessful. Please go to ${BUILD_URL}console and check the log",
8572
subject: "Container images - Build Unsuccessful",
86-
73+
8774
8875
}
89-
9076
always {
9177
archiveArtifacts '**/*.log'
78+
cleanWs()
9279
}
9380
}
9481
}

JenkinsJobs/Builds/FOLDER.groovy

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,6 @@ folder('Builds') {
44

55
pipelineJob('Builds/Build-Docker-images'){
66
description('Build and publish custom Docker images')
7-
properties {
8-
pipelineTriggers {
9-
triggers {
10-
cron {
11-
spec('''
12-
H 0 * * 2
13-
H 8 * * 4
14-
H 16 * * 6
15-
''')
16-
}
17-
}
18-
}
19-
}
207
definition {
218
cpsScm {
229
lightweight(true)

0 commit comments

Comments
 (0)