@@ -116,32 +116,31 @@ pipeline {
116
116
script {
117
117
def authorMail = sh(script : ' git log -1 --pretty=format:"%ce" HEAD' , returnStdout : true )
118
118
echo ' HEAD commit author: ' + authorMail
119
- if (
' [email protected] ' . equals(authorMail)
&& ! params
. forceNativeBuilds) {
119
+ def buildBotMail
= ' [email protected] '
120
+ if (buildBotMail. equals(authorMail) && ! params. forceNativeBuilds) {
120
121
// Prevent endless build-loops due to self triggering because of a previous automated build of natives and the associated updates.
121
122
currentBuild. result = ' ABORTED'
122
123
error(' Abort build only triggered by automated SWT-natives update.' )
123
124
}
124
- }
125
- sh '''
125
+ sh """
126
+ java -version
126
127
git version
127
128
git lfs version
129
+ git config --global user.email '${ buildBotMail} '
130
+ git config --global user.name 'Eclipse Platform Bot'
128
131
git config --unset core.hooksPath # Jenkins disables hooks by default as security feature, but we need the hooks for LFS
129
132
git lfs update # Install Git LFS hooks in repository, which has been skipped due to the initially nulled hookspath
130
133
git lfs pull
131
134
git fetch --all --tags --quiet
132
135
git remote set-url --push origin [email protected] :eclipse-platform/eclipse.platform.swt.git
133
- '''
136
+ """
137
+ }
134
138
}
135
139
}
136
140
}
137
141
stage(' Check if SWT-binaries build is needed' ) {
138
142
steps {
139
143
dir(' eclipse.platform.swt' ) {
140
- sh'''
141
- java -version
142
- git config --global user.email '[email protected] '
143
- git config --global user.name 'Eclipse Releng Bot'
144
- '''
145
144
script {
146
145
def allWS = [' cocoa' , ' gtk' , ' win32' ]
147
146
def libraryFilePattern = [ ' cocoa' : ' libswt-*.jnilib' , ' gtk' : ' libswt-*.so' , ' win32' : ' swt-*.dll' ]
0 commit comments