Changes not being displayed on jenkins build summary and in email body

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Changes not being displayed on jenkins build summary and in email body

Dominic Espiritu
On my jenkins Job (type of pipeline), I use gerrit-trigger and on the pipeline script definition I run "git fetch --tags --progress -- ${PROJECT_URL} ${GERRIT_REFSPEC} && git checkout FETCH_HEAD",
Values:

GERRIT_REFSPEC = refs/changes/*:refs/changes/*
PROJECT_URL = <repo url>

I can get the file changes but those files are not listen on my jenkins summary page and in the email body,

I would like to ask for help on this.

Thanks,
Dominic

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0cd43a8b-90de-4121-ba38-827b532167ba%40googlegroups.com.

jenkins-script.jfif (9K) Download Attachment
mail-content.jfif (37K) Download Attachment
jenkins-summary.jfif (23K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Changes not being displayed on jenkins build summary and in email body

Björn Pedersen


Am Donnerstag, 9. Januar 2020 15:59:08 UTC+1 schrieb Dominic Espiritu:
On my jenkins Job (type of pipeline), I use gerrit-trigger and on the pipeline script definition I run "git fetch --tags --progress -- ${PROJECT_URL} ${GERRIT_REFSPEC} && git checkout FETCH_HEAD",

You need to make jenkins aware that you  are using git, so use a scm/checkout  step to checkout the changes.

 
    checkout(
        changelog
: true, poll: false,
        scm
: [$class: 'GitSCM',
              branches
: [[name: "$GERRIT_BRANCH"]],
              doGenerateSubmoduleConfigurations
: false, submoduleCfg: [],
              userRemoteConfigs
: [
                 
[refspec: GERRIT_REFSPEC,
                   url
: <host> + GERRIT_PROJECT
                 
]
             
],
              extensions
: [
                 
[$class: 'hudson.plugins.git.extensions.impl.BuildChooserSetting',
                   buildChooser
: [$class: "com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser"]],
             
]
           
]
       
)



--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c7c012b4-da19-4f9b-8fd8-171a6752ecad%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Changes not being displayed on jenkins build summary and in email body

Dominic Espiritu
In reply to this post by Dominic Espiritu
Thanks Björn Pedersen, this is now working properly. :-)



On Thursday, 9 January 2020 22:59:08 UTC+8, Dominic Espiritu wrote:
On my jenkins Job (type of pipeline), I use gerrit-trigger and on the pipeline script definition I run "git fetch --tags --progress -- ${PROJECT_URL} ${GERRIT_REFSPEC} && git checkout FETCH_HEAD",
Values:

GERRIT_REFSPEC = refs/changes/*:refs/changes/*
PROJECT_URL = <repo url>

I can get the file changes but those files are not listen on my jenkins summary page and in the email body,

I would like to ask for help on this.

Thanks,
Dominic

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/eedae0eb-6164-428a-8989-e10e7689b607%40googlegroups.com.