File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -208,18 +208,16 @@ def waitForService(name, port):
208208
209209def getCommitId (ctx , branch ):
210210 if branch == "master" :
211- if ctx .build .event == "cron" :
212- return getOcislatestCommitId (branch )
213211 return "$OCIS_COMMITID"
214212 return "$OCIS_STABLE_COMMITID"
215213
216- def getOcislatestCommitId (branch ):
214+ def getOcisLatestMasterCommitId (branch ):
217215 return [
218216 {
219217 "name" : "get-ocis-latest-commit-id" ,
220218 "image" : OC_CI_ALPINE ,
221219 "commands" : [
222- "bash get-latest-ocis-commit-id.sh %s" % getBranchName ( branch ) ,
220+ "bash tests/drone/ get-latest-ocis-commit-id.sh master" ,
223221 ],
224222 },
225223 ]
@@ -233,7 +231,12 @@ def runOcis(ctx, branch):
233231 ocis_commit_id = getCommitId (ctx , branch )
234232 ocis_branch = getBranchName (branch )
235233 ocis_repo_url = "https://github.com/owncloud/ocis.git"
236- return [
234+ steps = []
235+
236+ if ctx .build .event == "cron" :
237+ steps += getOcisLatestMasterCommitId (branch )
238+
239+ steps += [
237240 {
238241 "name" : "clone-ocis-%s" % branch ,
239242 "image" : OC_CI_GOLANG ,
@@ -291,6 +294,7 @@ def runOcis(ctx, branch):
291294 ],
292295 },
293296 ]
297+ return steps
294298
295299def generateSSLCert ():
296300 return [
You can’t perform that action at this time.
0 commit comments