Giter VIP home page Giter VIP logo

Comments (10)

gabemontero avatar gabemontero commented on July 19, 2024

I've found BuildCause.java in the openshift-sync code and am working on a patch to pull that from the Run object and update the namespace if it is present. I'd rather call BuildCause.getNamespace() vs. parsing the short description that is available with the base hudson Cause class, so I'm first trying to make openshift-sync a dependency for openshift-pipeline (which will test my still young maven/pom skills :-) as the typical way I've created dependencies is not working at the moment ). Later on, if we are worried about size or circular dependencies, switching to parsing the short description is always a fallback option.

The order of precedence I'm envisioning is:

  1. if customer explicitly sets the namespace, go with that
  2. if sync plugin sets i cause, go with that
  3. go with the two existing default mechanisms (PROJECT_NAME env or namespace file mounted in the Pod

from jenkins-plugin.

gabemontero avatar gabemontero commented on July 19, 2024

got the maven dependency working :-)

from jenkins-plugin.

bparees avatar bparees commented on July 19, 2024
  1. if customer explicitly sets the namespace, go with that

sets it in the build step or sets it in the global plugin settings (if that's even a thing they can do)?

from jenkins-plugin.

gabemontero avatar gabemontero commented on July 19, 2024

On Wed, Jul 27, 2016 at 4:44 PM, Ben Parees [email protected]
wrote:

  1. if customer explicitly sets the namespace, go with that

sets it in the build step or sets it in the global plugin settings (if
that's even a thing they can do)?

Both in effect. The user puts some sort of value in any of our steps
fields, but that value could be an env var
that is defined either at the job level or the global level.

  1. if sync plugin sets i cause, go with that
  2. go with the two existing default mechanisms (PROJECT_NAME env or
    namespace file mounted in the Pod


You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
#54 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADbadJzkGcHcZge-f8QZC7n6GfJ5DkQ3ks5qZ8MugaJpZM4JVdu1
.

from jenkins-plugin.

bparees avatar bparees commented on July 19, 2024

Both in effect. The user puts some sort of value in any of our steps fields

ok but there's no way to define a global default value (not env variable) that the steps will use?

from jenkins-plugin.

gabemontero avatar gabemontero commented on July 19, 2024

Not currently, since to date pulling the default from what is mounted in the pod has been acceptable. But if isolating the project jenkins runs in from the "app" project has grown enough, we can special case the namespace and give it that means in addition to the env var stuff.

from jenkins-plugin.

bparees avatar bparees commented on July 19, 2024

fine for now, just wanted to make sure the full precedence hierarchy was represented. your proposal sounds good to me.

from jenkins-plugin.

gabemontero avatar gabemontero commented on July 19, 2024

ok cool @bparees

@siamaksade - I have pushed a pre-release change for the openshift pipeline plugin that should have it pull the namespace/project from the cause that the sync plugin sets before pulling it from what is mounted in the pod.

Download this binary and upgrade the plugin being used by your jenkins install via the Manage Jenkins -> Manage Plugins path if you want to give it a try.

from jenkins-plugin.

siamaksade avatar siamaksade commented on July 19, 2024

I'll give it a try and come back to you today

from jenkins-plugin.

siamaksade avatar siamaksade commented on July 19, 2024

For the record, it worked as expected

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.