Giter VIP home page Giter VIP logo

Comments (1)

gabemontero avatar gabemontero commented on July 21, 2024

I believe you are ultimately trying an option for tagging available with the CLI which is not available with the openshift-pipeline plugin.

You only specified a token my-token-for-my.localhost.openshift.com for the destination name space openshift-project

You did not specify a token for the source namespace external.registry.host.com, which by the way does not sound like a valid openshift namespace name, but an external docker registry.

If so, we are failing trying to access the project/namespace external.registry.host.com from the openshift master. And if by some add stretch such a project does exist, since you don't specify the source token for any non-default source namespace the plugin will use the service account token for the project hosting jenkins, and that token does not have access.

The plugin does not have the feature currently to try and access the source as an external docker registry.

If you don't think this analysis hits the mark, please re-open and clarify.

To ultimately work around this, I suggest you use our new plugin. See https://github.com/openshift/jenkins-client-plugin. It provides pipeline DSL that allows for direct invocation of the oc command in the openshift jenkins image. You can then leverage the oc commands capability to specify and external docker registry as a source for the tag command.

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.