@@ -109,6 +109,20 @@ from buildbot.steps.shell import Compile, Test, ShellCommand, WarningCountingShe
109
109
110
110
# description / descritionDone style : doing X / done X
111
111
112
+ class GitRenameLocalBranch1 (ShellCommand ):
113
+ name = 'gitRenameLocalBranch1'
114
+ description = [WithBranch ('renaming local git branch to temp' )]
115
+ descriptionDone = [WithBranch ('renamed local git branch to temp' )]
116
+ command = ['git' , 'branch' , '-M' , 'temp' ]
117
+ haltOnFailure = True
118
+
119
+ class GitRenameLocalBranch2 (ShellCommand ):
120
+ name = 'gitRenameLocalBranch2'
121
+ description = [WithBranch ('renaming local git branch to %s' )]
122
+ descriptionDone = [WithBranch ('renamed local git branch to %s' )]
123
+ command = ['git' , 'branch' , '-M' , WithBranch ()]
124
+ haltOnFailure = True
125
+
112
126
class BuildConfig (Compile ):
113
127
name = 'buildConfig'
114
128
warnOnWarnings = True
@@ -247,6 +261,8 @@ class WindowsFullBuildFactory(BuildFactory):
247
261
BuildFactory .__init__ (self )
248
262
self .useProgress = False
249
263
self .addStep ( Git (repourl = master_repo ) )
264
+ self .addStep ( GitRenameLocalBranch1 () )
265
+ self .addStep ( GitRenameLocalBranch2 () )
250
266
self .addStep ( SyncSubmodules () )
251
267
self .addStep ( InitSubmodules () )
252
268
self .addStep ( CreateBuildDir (extra_opts = common_win_opts ) )
@@ -259,6 +275,8 @@ class LinuxFullBuildFactory(BuildFactory):
259
275
BuildFactory .__init__ (self )
260
276
self .useProgress = False
261
277
self .addStep ( Git (repourl = master_repo ) )
278
+ self .addStep ( GitRenameLocalBranch1 () )
279
+ self .addStep ( GitRenameLocalBranch2 () )
262
280
self .addStep ( SyncSubmodules () )
263
281
self .addStep ( InitSubmodules () )
264
282
self .addStep ( CreateBuildDir () )
@@ -270,6 +288,8 @@ class MacOSXFullBuildFactory(BuildFactory):
270
288
BuildFactory .__init__ (self )
271
289
self .useProgress = False
272
290
self .addStep ( Git (repourl = master_repo ) )
291
+ self .addStep ( GitRenameLocalBranch1 () )
292
+ self .addStep ( GitRenameLocalBranch2 () )
273
293
self .addStep ( SyncSubmodules () )
274
294
self .addStep ( InitSubmodules () )
275
295
self .addStep ( CreateBuildDir () )
@@ -283,6 +303,8 @@ class MacOSXQuickBuildFactory(BuildFactory):
283
303
BuildFactory .__init__ (self )
284
304
self .useProgress = False
285
305
self .addStep ( Git (repourl = master_repo ) )
306
+ self .addStep ( GitRenameLocalBranch1 () )
307
+ self .addStep ( GitRenameLocalBranch2 () )
286
308
self .addStep ( SyncSubmodules () )
287
309
self .addStep ( InitSubmodules () )
288
310
self .addStep ( CreateBuildDir () )
@@ -311,6 +333,8 @@ class ValidationBuildFactory(BuildFactory):
311
333
BuildFactory .__init__ (self )
312
334
self .useProgress = False
313
335
self .addStep ( Git (repourl = master_repo ) )
336
+ self .addStep ( GitRenameLocalBranch1 () )
337
+ self .addStep ( GitRenameLocalBranch2 () )
314
338
self .addStep ( SyncSubmodules () )
315
339
self .addStep ( InitSubmodules () )
316
340
self .addStep ( CreateBuildDir () )
0 commit comments