-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add jenkinsfile and openshift template #3380
Conversation
@bparees ptal The s2i builder repo can be found here: |
lgtm. @openshift/team-documentation we're trying to add some PR automation logic to build/preview docs PRs using the new openshift ci cluster, who do we need to talk to about getting this reviewed/merged? |
I think I understand the goal but it would still be good to have a conversation about it. Also, I am a little confused because at no point in the |
that's in the s2i builder image @csrwng created: https://github.com/csrwng/openshift-docs-s2i/blob/master/s2i/bin/assemble#L11 the jenkinsfile isn't doing the docs build directly, it's invoking an s2i build. |
6ff9277
to
e4af39a
Compare
Updated to have preview details go to index.html |
Understood, thanks for clarifying. In talking w/ @csrwng I noted a change that needs to be made to the builder image (add a JRE to support DITAA image generation) but this PR looks good. @vikram-redhat and @adellape - from your perspective, this work creates an automatic test pass, similar to what happens with Travis, on an OpenShift cluster for new docs PRs. From GitHub you will be able to follow a link to the URL where the PR changes have been applied to the docs (this is a master-branch-only build of the docs repo for each distro). The test will not "pass" until you have approved the changes in Jenkins. Approval == clicking a button that says "this looks right". Note, however, that even if you don't approve the test through Jenkins you can still merge the PR, so this augments the PR approval workflow by automating a test build of the changes, but doesn't require you to approve the new instance in order to merge the change. |
The s2i builder has been updated with a JRE and is now generating ditaa diagrams. |
Once we get an ACK from @vikram-redhat or @adellape we can merge this. |
👍 I like this. |
Thanks @nhr and @csrwng @bparees . @adellape and I discussed this today. IIUC, this will add an extra step to the docs team's process for merging, verifying and following up of PRs. However, we do see the benefit of it by allowing us to make sure, especially for larger changes, that the books build ok and the changes haven't broken anything. I guess we won't know till we try it and if it becomes bothersome, we can revert it. @aheslin - FYI. |
Just fyi ... this is only the first step in enabling this flow. We still need to set up the ci server to listen on PRs and do the builds. @stevekuznetsov fyi |
to be clear, you can do whatever you want with it. you're more than welcome to ignore the additional messages that will appear in the PR, we just wanted to
|
Do you want me to take that work on, or do you have bandwidth? I can give you a project on the cluster. |
I can set it up. I will need you to assign a cluster role (self-provisioner) to the jenkins SA in the project you create for this.
…On Dec 15, 2016, 10:19 AM -0500, Steve Kuznetsov ***@***.***>, wrote:
> Just fyi ... this is only the first step in enabling this flow. We still need to set up the ci server to listen on PRs and do the builds.
Do you want me to take that work on, or do you have bandwidth? I can give you a project on the cluster.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
e4af39a
to
1e27976
Compare
Per @stevekuznetsov - Added a timeout for approval (2 days) |
1e27976
to
987899a
Compare
@nhr is this ready for merge? |
Indeed it is! |
This PR creates a Jenkinsfile at the root of the docs repository. This enables the Jenkins GitHub Organization plugin to automatically instantiate a pipeline for this repository and run builds on PRs.
It also adds an OpenShift template that can be used to build and run the doc repository for a given GIT_URI and GIT_REF.