Skip to content

Commit 2e6e2ae

Browse files
committed
[Build] Build commits from releng-bot if natives build is enforced
And add a not to the description of 'forceNativeBuilds' parameter that if enabled and 'skipCommit' is not set, the then build binaries will be pushed to the master branch.
1 parent 8fc934f commit 2e6e2ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Jenkinsfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pipeline {
5353
PR_VALIDATION_BUILD = "true"
5454
}
5555
parameters {
56-
booleanParam(name: 'forceNativeBuilds', defaultValue: false, description: 'Forces to run the native builds of swt\'s binaries. Useful in debugging.')
56+
booleanParam(name: 'forceNativeBuilds', defaultValue: false, description: 'Forces to run the native builds of swt\'s binaries. Will push the built binaries to the master branch, unless \'skipCommit\' is set. Useful in debugging.')
5757
booleanParam(name: 'skipCommit', defaultValue: false, description: 'Stops committing to swt and swt binaries repo at the end. Useful in debugging.')
5858
}
5959
stages {
@@ -64,7 +64,7 @@ pipeline {
6464
script {
6565
def authorMail = sh(script: 'git log -1 --pretty=format:"%ce" HEAD', returnStdout: true)
6666
echo 'HEAD commit author: ' + authorMail
67-
if ('[email protected]'.equals(authorMail)) {
67+
if ('[email protected]'.equals(authorMail) && !params.forceNativeBuilds) {
6868
// Prevent endless build-loops due to self triggering because of a previous automated build of SWT-natives and the associated updates.
6969
currentBuild.result = 'ABORTED'
7070
error('Abort build only triggered by automated SWT-natives update.')

0 commit comments

Comments
 (0)