Search code examples
ibm-cloudbuild-processdevopsbuild-pipeline

Is there any way to define an environment variable that is accessible across all stages of the IBM Bluemix DevOps Build pipeline


Would anyone know if there is any magic way to define an env variable that could be accessed from all stages of the DevOps build pipeline?

So far, it seems the only thing you can do is to define env variables shared by all jobs inside the same stage.

I understand that each stage run in complete isolation under the cover, but still I was wondering if any trick could be done to define a common env variable for all stages?

Thanks


Solution

  • Environment variables are per stage. There is currently no way to have the same environment variable across that entire pipeline. You would need to set it on each stage individually.