Comments (11)
This is certainly still an involving space in relation to our overall Jenkins strategy. Among other thing, @mfojtik has an image promotion proposal that will most likely drive further enhancement into the plugin.
Certainly in the short term, in relation to the blog post you noted, the tag an image build step is the key piece in the existing plugin inventory that allows for some flavor of promotion semantics. Template processing build steps minimally (a new-app build step would be nice but isn't required) would help complete the picture I agree.
@bparees @mfojtik @sspeiche - fyi and if you can, please add to / elaborate on my response here.
from jenkins-plugin.
fyi opened this card to track the minimal pieced needed in the plugin to facilitate image promotion per @mfojtik 's proposal.
from jenkins-plugin.
oc tag
(which the jenkins plugins already supports) should be all that's needed to promote images between projects within a single cluster.
The existing jenkins tutorial/sample implements an image promotion flow using that functionality.
https://github.com/openshift/origin/tree/master/examples/jenkins
from jenkins-plugin.
Yep I noted the tag an image build step (oc tag
equivalent as well). The oc import-image
notion came from @mfojtik image promotion proposal.
But certainly an image promotion flow is available. It becomes a question of how we augment that flow or add additional ones moving forward, no?
from jenkins-plugin.
Ah ok great - I'd missed that you can use tag to promote between projects, I thought it was only for the current project with that blog suggesting to create a new-app using the image stream name in the target environment (project).
Great so tag is what I'm after so will use the following assuming I prefix the target project/environment in the prodTag var?
"Tag an image in OpenShift": com.openshift.jenkins.plugins.pipeline.OpenShiftImageTagger(String apiURL, String testTag, String prodTag, String namespace, String authToken, String verbose)
from jenkins-plugin.
if it doesn't work that way today, it should be updated to take source and destination projecs as additional arguments.
from jenkins-plugin.
@gabemontero @mfojtik I don't think "oc import-image mystream --from=mydockerrepository" is a likely way to do promotion. you should already have an imagestream pointing to "mydockerrepository"
from jenkins-plugin.
It only takes 1 project today ... I added another card: https://trello.com/c/mImyw4Jx/783-1-allow-oc-tag-equivalent-in-openshift-jenkins-plugin-to-take-source-and-destination-projects-namespaces
from jenkins-plugin.
Great thanks all
from jenkins-plugin.
With commit 80b79c6 , the "Tag OpenShift Image" step can now perform the oc tag
equivalent where the src ImageStream and dest ImageStream are in different projects.
I've noted in the README some of the oc policy
magic @mfojtik pointed me to that is needed to get a given default service account's token permission to access both projects in the necessary fashion to perform this step.
Aside from extracting from the repo and building the plugin, if desired, I can also create a new version of the plugin on OpenShift's Jenkins server (https://ci.openshift.redhat.com/jenkins/)
Otherwise, I suspect a new version of the Jenkins images with an official plugin version on the jenkins update center will be post 3.2 (though we can of course discuss as needed).
from jenkins-plugin.
Closing this out.
from jenkins-plugin.
Related Issues (20)
- Patch / Update resources HOT 9
- jenkins template using spec.clusterIP instead of spec.portalIP HOT 2
- Build output sometimes not shown in jenkins console output HOT 2
- Deployments don't work HOT 3
- Environment Variables don't respect Parameterised Builds HOT 6
- Timeout of builds HOT 3
- Unable to do openshiftTag() in pipeline HOT 1
- FR: Support of variables inside Openshift Exec HOT 9
- BUG: "Test connection" always returns "Connections successful" HOT 11
- BUG: OpenshiftExec ignores timeout HOT 12
- Confusing print statement if openshiftVerifyDeployment fails HOT 1
- okhttp binary changes break plugin when others installed HOT 11
- Externalize the CERT_FILE = "/run/secrets/kubernetes.io/serviceaccount/ca.crt"; HOT 7
- Issue with Jenkin's Verify Build OpenShift plug-in functionality HOT 9
- Declarative pipeline support? HOT 4
- openshift-client-plugin really still a "tech preview" ? HOT 3
- Jenkins throws an error when using the openhiftBuild with the buildConfig parameter HOT 3
- Resulting GDSL is Broken HOT 2
- openshiftBuild should support binary build type. HOT 10
- Add deprecation warning and link to new plugin as first thing in repo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jenkins-plugin.