Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Add variables for manual pipelines not working as expected

Ankit Jangid November 3, 2019

I have created a pipeline to pass variables to pipeline manually but its not prompting to enter the variables values. Below is the sample yaml file for the same.

 

pipelines:
  custom:
    custom-name-and-region: #name of this pipeline
      - variables:			#list variable names under here
          - name: Username
          - name: Region
      - step: 
          script:
            - echo "User name is $Username"
            - echo "and they are in $Region"

 

while executing pipeline it should ask Username and Region but unfortunately its not asking anything and running with empty variables values.

I am on free plan. Please let me know what i am doing wrong and how to correct this.

1 answer

0 votes
Ankit Jangid November 8, 2019

Now its working fine without any change.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events