# Passing an override for an environment variable on manually started build not working

**URL:** <https://discuss.bitrise.io/t/passing-an-override-for-an-environment-variable-on-manually-started-build-not-working/13893>\
**Category:** Question & Answer\
**Created:** [August 11, 2020, 5:56am UTC](https://discuss.bitrise.io/t/passing-an-override-for-an-environment-variable-on-manually-started-build-not-working/13893 "2020-08-11T05:56:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drekka-IAG](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/drekka-iag/32/3095_2.png) [@Drekka-IAG](https://discuss.bitrise.io/u/Drekka-IAG)\
**Post date:** [August 11, 2020, 5:56am UTC](https://discuss.bitrise.io/t/passing-an-override-for-an-environment-variable-on-manually-started-build-not-working/13893/1 "2020-08-11T05:56:19Z")

</div>

Hi all, this has been driving me nuts all afternoon. I have a workflow which creates an XArchive for uploading to TestFlight. I want to be able to change the Xcode configuration when I trigger the workflow manually.

So the first thing I did was create a variable in the environment are like this:

```
Workflows:
    testflight:
        steps:
        - xcode-archive@2:
            inputs:
            - project_path: "$BITRISE_PROJECT_PATH"
            - scheme: "$BITRISE_SCHEME"
            - force_team_id: ''
            - force_code_sign_identity: ''
            - force_provisioning_profile: ''
            - force_provisioning_profile_specifier: ''
            - configuration: "$XCODE_CONFIGURATION"
            - export_method: "$BITRISE_EXPORT_METHOD"
        envs:
            - XCODE_CONFIGURATION: Release
                opts:
                    is_expand: false

```

(Please excuse if that’s not quite formatted correctly, I hacked out all the other stuff in the workflow)

Now when I run the workflow I see the configuration of the XArchive step set to Release.

I then tried running the workflow again, but this time passing XCODE\_CONFIGURATION set to Debug like this:

```
{
    "branch":"develop",
    "workflow_id":"testflight",
    "environments":[{
        "mapped_to":"XCODE_CONFIGURATION",
        "value":"Debug",
        "is_expand":false
    }]
}

```

But when the flow ran, it still showed XArchive configuration as Release.

I’ve tried all sorts of things and I can’t figure out why this is not working. Any clues?

---

<div class="post-metadata">

**Author:** ![bitce](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bitce/32/1639_2.png) [@bitce](https://discuss.bitrise.io/u/bitce)\
**Post date:** [August 14, 2020, 1:41pm UTC](https://discuss.bitrise.io/t/passing-an-override-for-an-environment-variable-on-manually-started-build-not-working/13893/2 "2020-08-14T13:41:33Z")

</div>

Hi @Drekka-IAG!

Sorry to hear about the issue! Can you please paste a build URL here where you tried to overwrite the original value? Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [September 13, 2020, 1:52pm UTC](https://discuss.bitrise.io/t/passing-an-override-for-an-environment-variable-on-manually-started-build-not-working/13893/3 "2020-09-13T13:52:54Z")

</div>

Closed on September 13, 2020, 1:52pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
