Forums

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

Curl Issue

Swarup Roy
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 25, 2023

Hi Team,

I am hitting the below but instead of taking the value a cycle is created with name "$test_cycle". I tried different combinations sometime it is creating cycle with name "Automation Build" I want cycle name as variable . PLease help

 

pipelines:
default:
- step:
name: Build Image

- export BASE_CYCLE_NAME="FDL Automation Build"
- export DATE_STAMP=$(date +'%Y-%m-%d_%H-%M-%S')
- export TEST_CYCLE_NAME="$BASE_CYCLE_NAME - $DATE_STAMP"
- "curl -H \"Authorization: Bearer $TOKEN\" -F \"file=@target/cucumber/tm4j_result.zip;type=application/x-zip-compressed\" -F 'testCycle={\"name\": \"$test_cycle\"};type=application/json' $URL -v"

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events