10
10
from buildbot .steps .mtrlogobserver import MTR
11
11
12
12
# Local
13
- from constants import MTR_ENV , test_type_to_mtr_arg
13
+ from constants import MTR_ENV , SAVED_PACKAGE_BRANCHES , test_type_to_mtr_arg
14
14
from utils import (
15
15
createVar ,
16
16
dockerfile ,
@@ -140,7 +140,7 @@ def addPostTests(factory):
140
140
steps .SetPropertyFromCommand (
141
141
command = "basename mariadb-*-linux-*.tar.gz" ,
142
142
property = "mariadb_binary" ,
143
- doStepIf = savePackage ,
143
+ doStepIf = lambda step : savePackage ( step , SAVED_PACKAGE_BRANCHES ) ,
144
144
)
145
145
)
146
146
factory .addStep (
@@ -156,7 +156,7 @@ def addPostTests(factory):
156
156
&& sync /packages/%(prop:tarbuildnum)s
157
157
"""
158
158
),
159
- doStepIf = savePackage ,
159
+ doStepIf = lambda step : savePackage ( step , SAVED_PACKAGE_BRANCHES ) ,
160
160
)
161
161
)
162
162
factory .addStep (
@@ -166,7 +166,8 @@ def addPostTests(factory):
166
166
waitForFinish = False ,
167
167
updateSourceStamp = False ,
168
168
set_properties = properties ,
169
- doStepIf = lambda step : savePackage (step ) and hasEco (step ),
169
+ doStepIf = lambda step : savePackage (step , SAVED_PACKAGE_BRANCHES )
170
+ and hasEco (step ),
170
171
)
171
172
)
172
173
factory .addStep (
@@ -737,7 +738,8 @@ def getRpmAutobakeFactory(mtrDbPool):
737
738
sync /packages/%(prop:tarbuildnum)s
738
739
"""
739
740
),
740
- doStepIf = lambda step : hasFiles (step ) and savePackage (step ),
741
+ doStepIf = lambda step : hasFiles (step )
742
+ and savePackage (step , SAVED_PACKAGE_BRANCHES ),
741
743
descriptionDone = util .Interpolate (
742
744
"""
743
745
Repository available with: curl %(kw:url)s/%(prop:tarbuildnum)s/%(prop:buildername)s/MariaDB.repo -o /etc/yum.repos.d/MariaDB.repo""" ,
@@ -775,7 +777,7 @@ def getRpmAutobakeFactory(mtrDbPool):
775
777
"parentbuildername" : Property ("buildername" ),
776
778
},
777
779
doStepIf = lambda step : hasInstall (step )
778
- and savePackage (step )
780
+ and savePackage (step , SAVED_PACKAGE_BRANCHES )
779
781
and hasFiles (step ),
780
782
)
781
783
)
@@ -792,7 +794,7 @@ def getRpmAutobakeFactory(mtrDbPool):
792
794
"parentbuildername" : Property ("buildername" ),
793
795
},
794
796
doStepIf = lambda step : hasUpgrade (step )
795
- and savePackage (step )
797
+ and savePackage (step , SAVED_PACKAGE_BRANCHES )
796
798
and hasFiles (step ),
797
799
)
798
800
)
0 commit comments