From f8a71368665f20a9708ac82ad94c3c74792b2e95 Mon Sep 17 00:00:00 2001 From: Prajwol Amatya <83579989+PrajwolAmatya@users.noreply.github.com> Date: Mon, 15 Apr 2024 09:55:14 +0545 Subject: [PATCH] updated drone file to display pipeline in order by trigger (#8823) --- .drone.star | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.drone.star b/.drone.star index 094a0fa877..eb77f6584a 100644 --- a/.drone.star +++ b/.drone.star @@ -246,25 +246,27 @@ def main(ctx): pipelines = [] + build_release_helpers = [ + changelog(), + docs(), + licenseCheck(ctx), + ] + test_pipelines = \ codestyle(ctx) + \ checkTestSuitesInExpectedFailures(ctx) + \ buildWebCache(ctx) + \ getGoBinForTesting(ctx) + \ [buildOcisBinaryForTesting(ctx)] + \ + checkStarlark() + \ + build_release_helpers + \ testOcisAndUploadResults(ctx) + \ testPipelines(ctx) build_release_pipelines = \ - [licenseCheck(ctx)] + \ dockerReleases(ctx) + \ binaryReleases(ctx) - build_release_helpers = [ - changelog(), - docs(), - ] - test_pipelines.append( pipelineDependsOn( purgeBuildArtifactCache(ctx), @@ -272,7 +274,7 @@ def main(ctx): ), ) - pipelines = test_pipelines + build_release_pipelines + build_release_helpers + pipelines = test_pipelines + build_release_pipelines if ctx.build.event == "cron": pipelines = \ @@ -296,7 +298,6 @@ def main(ctx): pipelines = pipelines + k6LoadTests(ctx) - pipelines += checkStarlark() pipelineSanityChecks(ctx, pipelines) return pipelines @@ -331,7 +332,7 @@ def testOcisAndUploadResults(ctx): scan_result_upload["depends_on"] = getPipelineNames([pipeline]) security_scan = scanOcis(ctx) - return [pipeline, scan_result_upload, security_scan] + return [security_scan, pipeline, scan_result_upload] def testPipelines(ctx): pipelines = []