Hi all,
I’m trying to run a pipeline using the cloud rest api. I’m successfully being able to run it, but I also want to overwrite a repository variable called OPTIONAL_MESSAGE
. I’ve set this variable as being an empty string in the repository variables, however, when sending a request to start the pipeline using the following request
{
"target": {
"type": "pipeline_ref_target",
"ref_type": "branch",
"ref_name": "main",
"selector": {
"type": "custom",
"pattern": "some-branch"
},
"variables": [
{
"key": "OPTIONAL_MESSAGE",
"value": "some-message",
"secured":false
}
]
}
}
The pipeline starts and is executed fine, but the OPTIONAL_MESSAGE
variable is not overwritten and it still have a value of an empty string. Am i following the correct approach?
Thank you !