We are using a function in our cps global library to perform our git fetch. 
 This function looks something like:

def getFromStash(stashProject, stashRepo) {
    checkout changelog: true, poll: true, scm: [
        $class: 'GitSCM',
        branches: [[name: '*/master']],
        doGenerateSubmoduleConfigurations: false,
        submoduleCfg: [],
        userRemoteConfigs: [[
            credentialsId: 'e01b632a-4bb4-446b-9d93-793565f2293f',
            url: "ssh://git@stash:7999/${stashProject}/${stashRepo}.git"
        ]]
    ]
}


It appears that using such an approach (which interestingly is *the* example 
given for using a cps global library) to pulling from SCM breaks the 
git-hook because the workflow plug-in is unable to determine, without 
running the workflow, the url that the job is going to pull from. 
 (Specifically the hook when invoked reports no matching jobs found) 

Is there any way around this?  It seems like this would also break basic 
SCM polling as well would it not?  Given that this is the example for using 
a global library, I am hoping there is a right way to do this, because not 
being able to poll nor be triggered is something of a problem.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3582e9c0-e7c1-472c-9614-97c560b9bf6c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to