Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Add the steps/tasks to provide the content as a file, e.g. by downloading a shared artifact, checking it out from a source code repository or fetching the content from an URL with a script (the example uses the cloudformation.parameters.json Bitbucket snippet).

    Image RemovedImage Added
  2. Reference the file URL as the only content from a subsequent task's input field, e.g. file://${bamboo.build.working.directory}/cloudformation.parameters.json.

...

  1. Add the steps/tasks to provide the content as a file, e.g. by downloading a shared artifact, checking it out from a source code repository or fetching the content from an URL with a script (the example uses the cloudformation.parameters.json Bitbucket snippet).

    Image RemovedImage Added
  2. Install the Variable tasks for Bamboo app.

  3. Add a Variable File reader task to Get the full content of a file and inject it in a variable.

    Image RemovedImage Added


    1. Specify a variable name, e.g. cloudformation.parameters.

      1. (info) Bamboo adds the prefix bamboo, so this variable needs to be referenced as ${bamboo.cloudformation.parameters}.

    2. Specify the file provided in step 1. to read the content from.

      1. Local scope is sufficient for reusing the variable inside the same job. Read the inline help for details on Result or Plan/Deployment scoped variables.

  4. Reference the variable as the only content from a subsequent task's input field, e.g. ${bamboo.cloudformation.parameters}.

    Image RemovedImage Added

Note

Limitation

 This workaround has the limitation that the included content cannot use Bamboo variables in turn, because Bamboo doesn't yet support nested/recursive expansion of variables
(see

Jira Legacy
serverAtlassian JIRA
serverId144880e9-a353-312f-9412-ed028e8166fa
keyBAM-8266
).

...