Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set variables after completed OpenShift Jenkins Build Step #44

Closed
ullgren opened this issue Jun 30, 2016 · 3 comments
Closed

Set variables after completed OpenShift Jenkins Build Step #44

ullgren opened this issue Jun 30, 2016 · 3 comments

Comments

@ullgren
Copy link

ullgren commented Jun 30, 2016

Would be useful if the OpenShift Jenkins plugin could set environment variables after a completed jenkins "Build Step".

For instance after triggering a new build it would be useful if the build instance number/name in OSE or the hash of the resulting image in OpenShift would be available as environment variables in Jenkins.

Similar other "Build Steps" such as "Verify Deployment" could extract information about the resource queried and add these to the environment.

@gabemontero
Copy link
Contributor

I've looked into this in the past and found that EnvVars I set in one step were not available in subsequent steps. But since then, I've learned that I might have needed something like the EnvInject plugin to get this to work.

Now, we've got a bunch of in-progress work around Jenkins Pipelines that are for example setting annotations on the OpenShift builds themselves to allow for the type of correlations I believe you are referring to.

So, moving forward on this issue would entail

  1. gathering/receiving intel on the mechanics needed to set/receive env vars between classic jenkinst freestyle steps
  2. discussions with OpenShift architecture on reconciling the different ways we want to correlate environment information in our jenkins scenarios

@bparees @smarterclayton @spadgett @jimmidyson @rawlingsj FYI

@bparees
Copy link
Contributor

bparees commented Jun 30, 2016

@gabemontero let's open this as a card on the trello backlog and close this issue.

@gabemontero
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants