Hello!
I have “targetBuild” Workflow Environment Variables
Next I have a simple script
#!/usr/bin/env bash
set -ex
envman add --key targetBuild --value "${targetBuild}"
echo "Test" $targetBuild
echo "Test $targetBuild"
echo $GIT_REPOSITORY_URL
exit 1
But when I run build from curl I can’t access my variable
INFO[08:46:44] Step uses latest version -- Updating StepLib ...
+------------------------------------------------------------------------------+
| (0) Замена адреса сервера |
+------------------------------------------------------------------------------+
| id: script |
| version: 1.1.6 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: bash |
| time: 2020-06-29T08:46:51Z |
+------------------------------------------------------------------------------+
| |
+ envman add --key targetBuild --value ''
+ echo Test
Test
+ echo 'Test '
Test
+ echo [REDACTED]
[REDACTED]
+ exit 1
cURL is something like
curl https://app.bitrise.io/app/*/build/start.json --data '{"hook_info": "type":"bitrise","build_trigger_token":"*"},"build_params":{"branch":"master","environments": {"mapped_to":"targetBuild","value":"release","is_expand":true}]},"triggered_by":"curl"}'