Hi Everyone...
am passing the custom jira variable to trigger the bitbucket pipeline from jira....
below is the payload:
{ "target": { "ref_type": "branch", "type": "pipeline_ref_target", "ref_name": "main" }, "variables": [ { "key": "EXECUTION_ID", "value": "{{issue.key}}" }, { "key": "DEVICE_ID", "value": "{{issue.fields.customfield_10041}}" }, { "key": "TEST_LAB", "value": "{{issue.fields.customfield_10042}}" }, { "key": "DEVICE_TYPE", "value": "{{issue.fields.customfield_10040}}" } ] }
======================
now my bitbucket pipeline gets triggered but unable to access these variables
below is the yml file
pipelines:
default:
- step:
name: Run Appium Tests
caches:
- pip # Cache pip dependencies to avoid re-installing them every time
script:
- printenv
- env | sort
- echo "DEBUG Execution id is $EXECUTION_ID"
- echo "DEBUG DeviceType id is $DEVICE_ID"
- pip3 install -r requirements.txt
- python runner.py --test_execution_id=$EXECUTION_ID --deviceType=$DEVICE_TYPE --env "test" --jira_flag "true"
Interesting..!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.