Giter VIP home page Giter VIP logo

Comments (11)

gabemontero avatar gabemontero commented on July 19, 2024

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.

gabemontero avatar gabemontero commented on July 19, 2024

fyi opened this card to track the minimal pieced needed in the plugin to facilitate image promotion per @mfojtik 's proposal.

from jenkins-plugin.

bparees avatar bparees commented on July 19, 2024

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.

gabemontero avatar gabemontero commented on July 19, 2024

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.

rawlingsj avatar rawlingsj commented on July 19, 2024

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.

bparees avatar bparees commented on July 19, 2024

if it doesn't work that way today, it should be updated to take source and destination projecs as additional arguments.

from jenkins-plugin.

bparees avatar bparees commented on July 19, 2024

@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.

gabemontero avatar gabemontero commented on July 19, 2024

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.

rawlingsj avatar rawlingsj commented on July 19, 2024

Great thanks all

from jenkins-plugin.

gabemontero avatar gabemontero commented on July 19, 2024

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.

gabemontero avatar gabemontero commented on July 19, 2024

Closing this out.

from jenkins-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.