Registering (Git) repository for notifyCommit URL in Pipeline job

11 views
Skip to first unread message

Łukasz Zachulski

unread,
Jun 13, 2017, 6:02:35 PM6/13/17
to Jenkins Developers
I'm wondering at what stage Pipeline job registers Git repository so it could be reached when triggering via `https://jenkins/git/notifyCommit?url=...` URL.

In my code I'm setting properties before calling `checkout` and sometimes I'm observing that Jenkins stops recognize repository as it ignores incomings triggers. Could this be somehow related?
Usually this happens when builds is aborted and to "fix" it I need to rebuilt it manually.

Snippet from my Pipeline configuration:
...
properties
([
    buildDiscarder
(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '100')),
    parameters
([
       
string(defaultValue: '', description: '', name: 'PARAMETER')
   
]),
    pipelineTriggers
([[$class:"SCMTrigger", scmpoll_spec:""]]),
])

node
{
            stage
(name: 'checkout') {
                checkout
(
                           
[$class: 'GitSCM', ...
...



ps. It's not Multibranch Pipeline.
Reply all
Reply to author
Forward
0 new messages