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

Jenkins persistent template overriding PV content with image content and boot #161

Open
goldmann opened this issue Jul 17, 2019 · 3 comments

Comments

@goldmann
Copy link

The Jenkins persistent template sets environment variables that are responsible for overriding the content of the PV with default content stored in the image. This results in lost jobs and configuration when the Jenkins instance is redeployed in OpenShift which is not exactly what "persistent" means 😃

- name: OVERRIDE_PV_CONFIG_WITH_IMAGE_CONFIG
value: 'true'
- name: OVERRIDE_PV_PLUGINS_WITH_IMAGE_PLUGINS
value: 'true'

Environment variables in question: OVERRIDE_PV_CONFIG_WITH_IMAGE_CONFIG and OVERRIDE_PV_PLUGINS_WITH_IMAGE_PLUGINS. These should be unset or set to false.

Docs: https://github.com/openshift/jenkins#environment-variables

Relevant code:

https://github.com/openshift/jenkins/blob/5a15d42e285de8ff39993b8b2d74c749fa1647f1/2/contrib/s2i/run#L373-L401

@goldmann goldmann changed the title Persistent template overriding PV content with image content and boot Jenkins persistent template overriding PV content with image content and boot Jul 17, 2019
@goldmann
Copy link
Author

I guess this should be moved to https://github.com/CentOS-PaaS-SIG/contra-env-infra. What is the usage for the jenkins-persistent-template.yaml.j2 template in this repository?

@goldmann
Copy link
Author

Correction, these envs need to be removed to have it working.

@arilivigni
Copy link
Member

You don't have to use this Jenkins master config use your own or from contra-env-infra. This is here as an option. In fact I don't think we use this template any longer by default. It was for the CCIT team.

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