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

OSIO production API urls hardcoded in the code #357

Open
vpavlin opened this issue Nov 8, 2017 · 3 comments
Open

OSIO production API urls hardcoded in the code #357

vpavlin opened this issue Nov 8, 2017 · 3 comments

Comments

@vpavlin
Copy link
Contributor

vpavlin commented Nov 8, 2017

There are API urls hardcoded in this repository:

https://github.com/fabric8io/fabric8-pipeline-library/blob/master/vars/deployOpenShiftSnapshot.groovy#L57-L61

@jstrachan mentioned this file is not really used when someone uses fabric8-pipeline-library, which is good.

It would be great if you could use more descriptive name for the file mentioned above - something like deployOSIOProdSnapshot.yaml maybe?

And/or (when there is time) take the hardcoded values out to some config, in case the groovy script has a potential to be used for other deployments or by other people.

@rawlingsj
Copy link
Contributor

The approach would be to move the env vars out of the reusable pipeline just as we've done on a similar function https://github.com/fabric8io/fabric8-pipeline-library/blob/master/vars/deployKubernetesSnapshot.groovy#L99-L108 they are instead passed as a map from the Jenkinsfile of the repo that's being run, for example:
https://github.com/fabric8io/openshift-jenkins-s2i-config/blob/master/Jenkinsfile#L146-L148

@vpavlin
Copy link
Contributor Author

vpavlin commented Nov 8, 2017

Is there a way to figure out which Jenkinsfiles use these values? I.e. what breaks if we remove it from library and where they need to be placed?

@rawlingsj
Copy link
Contributor

At the moment there's only two repos that deploy snapshot builds so updating them should do it:

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

2 participants