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