From 31e8e6031c5f364c5dbef5454daa17aa60c0ca63 Mon Sep 17 00:00:00 2001 From: James Sammut Date: Mon, 13 May 2024 12:32:34 +1000 Subject: [PATCH] Amended custom/variables test --- .../examples/custom/variables.yml.snap | 7 ++++- .../bitbucket/examples/custom/variables.yml | 31 ++++++++++--------- .../compat/bitbucket/examples/variables.yml | 19 ------------ 3 files changed, 22 insertions(+), 35 deletions(-) delete mode 100644 app/spec/lib/bk/compat/bitbucket/examples/variables.yml diff --git a/app/spec/lib/bk/compat/bitbucket/__snapshots__/spec/lib/bk/compat/bitbucket/examples/custom/variables.yml.snap b/app/spec/lib/bk/compat/bitbucket/__snapshots__/spec/lib/bk/compat/bitbucket/examples/custom/variables.yml.snap index 7bbd6bd9..9d909a31 100644 --- a/app/spec/lib/bk/compat/bitbucket/__snapshots__/spec/lib/bk/compat/bitbucket/examples/custom/variables.yml.snap +++ b/app/spec/lib/bk/compat/bitbucket/__snapshots__/spec/lib/bk/compat/bitbucket/examples/custom/variables.yml.snap @@ -1,6 +1,11 @@ --- steps: -- group: default +- key: execute-34fda39a698739f93a76af1583cf0b9e937f3561 + prompt: Execute step 34fda39a698739f93a76af1583cf0b9e937f3561? + input: execute-34fda39a698739f93a76af1583cf0b9e937f3561 +- group: deployer + depends_on: + - execute-34fda39a698739f93a76af1583cf0b9e937f3561 steps: - key: custom-vars fields: diff --git a/app/spec/lib/bk/compat/bitbucket/examples/custom/variables.yml b/app/spec/lib/bk/compat/bitbucket/examples/custom/variables.yml index 0346eebb..48699af2 100644 --- a/app/spec/lib/bk/compat/bitbucket/examples/custom/variables.yml +++ b/app/spec/lib/bk/compat/bitbucket/examples/custom/variables.yml @@ -1,18 +1,19 @@ # from https://support.atlassian.com/bitbucket-cloud/docs/pipeline-start-conditions/#Example-%E2%80%94-using-the-variables-property-to-define-custom-pipeline-variables pipelines: - default: - - variables: - - name: Username - - name: Role - default: "admin" # optionally provide a default variable value - description: "Add user role" - - name: Region - default: "us-east-1" - allowed-values: # optionally restrict variable values - - "ap-southeast-2" - - "us-east-1" - - "us-west-2" - - step: - script: - - echo "$Username manually triggered for a build for $Region as $Role!" \ No newline at end of file + custom: + deployer: # The name that is displayed in the list in the Bitbucket Cloud GUI + - variables: + - name: Username + - name: Role + default: "admin" # optionally provide a default variable value + description: "Add user role" + - name: Region + default: "us-east-1" + allowed-values: # optionally restrict variable values + - "ap-southeast-2" + - "us-east-1" + - "us-west-2" + - step: + script: + - echo "$Username manually triggered for a build for $Region as $Role!" \ No newline at end of file diff --git a/app/spec/lib/bk/compat/bitbucket/examples/variables.yml b/app/spec/lib/bk/compat/bitbucket/examples/variables.yml deleted file mode 100644 index 48699af2..00000000 --- a/app/spec/lib/bk/compat/bitbucket/examples/variables.yml +++ /dev/null @@ -1,19 +0,0 @@ -# from https://support.atlassian.com/bitbucket-cloud/docs/pipeline-start-conditions/#Example-%E2%80%94-using-the-variables-property-to-define-custom-pipeline-variables - -pipelines: - custom: - deployer: # The name that is displayed in the list in the Bitbucket Cloud GUI - - variables: - - name: Username - - name: Role - default: "admin" # optionally provide a default variable value - description: "Add user role" - - name: Region - default: "us-east-1" - allowed-values: # optionally restrict variable values - - "ap-southeast-2" - - "us-east-1" - - "us-west-2" - - step: - script: - - echo "$Username manually triggered for a build for $Region as $Role!" \ No newline at end of file