Skip to content

[JENKINS-15259] git-publisher is creating tag on the wrong SHA #2195

@jenkins-infra-bot

Description

@jenkins-infra-bot

Below is the Jenkins log, the tag created at the end is from git-publisher and it's tagging on 1e57c10451838940c3b5b2d14410fe166d2a31e0, not on the SHA used by the build and sub projects.

Started by an SCM change
Started by an SCM change
[EnvInject] - Loading node environment variables.
Building remotely on oxgslcopsda01_Dev_Slave_1 in workspace /jenkinsslave/workspace/SIT3_Full_Rebuild_and_Deploy

Deleting project workspace... done

Checkout:SIT3_Full_Rebuild_and_Deploy / /jenkinsslave/workspace/SIT3_Full_Rebuild_and_Deploy - hudson.remoting.Channel@​5645976f:oxgslcopsda01_Dev_Slave_1
Using strategy: Default
Last Built Revision: Revision 1e57c10451838940c3b5b2d14410fe166d2a31e0 (origin/master)
Cloning the remote Git repository
Cloning repository http://oxgslcrsa01.oaifield.onasgn.com:8082/git/ops
git --version
git version 1.7.7.3
Fetching upstream changes from http://oxgslcrsa01.oaifield.onasgn.com:8082/git/ops
Commencing build of Revision 82668c25c3600f04d15fff63391e3b9364447717 (origin/master)
Checking out Revision 82668c25c3600f04d15fff63391e3b9364447717 (origin/master)
Email was triggered for: Before Build
Sending email for trigger: Before Build
Sending email to: sebastien_tardif@​oxfordcorp.com
Waiting for the completion of SIT3_OPS_EXT4
SIT3_OPS_EXT4 #623 completed. Result was SUCCESS
Build step 'Trigger/call builds on other projects' changed build result to SUCCESS
Waiting for the completion of SIT3_BUILD_DB
SIT3_BUILD_DB #862 completed. Result was SUCCESS
Waiting for the completion of SIT3_TOP_PARENT
SIT3_TOP_PARENT #555 completed. Result was SUCCESS
Waiting for the completion of SIT3_EXCHANGE_PROXY
SIT3_EXCHANGE_PROXY #806 completed. Result was SUCCESS
Waiting for the completion of SIT3_SOLR
SIT3_SOLR #841 completed. Result was SUCCESS
Waiting for the completion of SIT3_DEPLOY_NODE
SIT3_DEPLOY_NODE #697 completed. Result was SUCCESS
Waiting for the completion of SIT3_OPS
SIT3_OPS #788 completed. Result was SUCCESS
Waiting for the completion of SIT3_OPS_Smoketest_Functional_Tests
SIT3_OPS_Smoketest_Functional_Tests #752 completed. Result was SUCCESS
[SIT3_Full_Rebuild_and_Deploy] $ /bin/sh -xe /tmp/hudson1142830593144261056.sh
+ git tag -f OPS_SIT3_LATEST
Updated tag 'OPS_SIT3_LATEST' (was 1e57c10)
Started indexing related Jira issue keys
Successfully indexed related Jira issue keys
Updating OPSD-2070
Updating OPSD-1994
Pushing tag OPS_SIT3_LATEST to repo origin
Email was triggered for: Success
Sending email for trigger: Success
Sending email to: sebastien_tardif@​oxfordcorp.com
Finished: SUCCESS


Originally reported by sebtardif, imported from: git-publisher is creating tag on the wrong SHA
  • status: Closed
  • priority: Major
  • component(s): git-plugin
  • resolution: Cannot Reproduce
  • resolved: 2021-04-14T01:51:21+00:00
  • votes: 0
  • watchers: 1
  • imported: 2025-12-02
Raw content of original issue

Below is the Jenkins log, the tag created at the end is from git-publisher and it's tagging on 1e57c10451838940c3b5b2d14410fe166d2a31e0, not on the SHA used by the build and sub projects.

Started by an SCM change Started by an SCM change [EnvInject] - Loading node environment variables. Building remotely on oxgslcopsda01_Dev_Slave_1 in workspace /jenkinsslave/workspace/SIT3_Full_Rebuild_and_Deploy

Deleting project workspace... done

Checkout:SIT3_Full_Rebuild_and_Deploy / /jenkinsslave/workspace/SIT3_Full_Rebuild_and_Deploy - hudson.remoting.Channel@5645976f:oxgslcopsda01_Dev_Slave_1 Using strategy: Default Last Built Revision: Revision 1e57c10451838940c3b5b2d14410fe166d2a31e0 (origin/master) Cloning the remote Git repository Cloning repository http://oxgslcrsa01.oaifield.onasgn.com:8082/git/ops git --version git version 1.7.7.3 Fetching upstream changes from http://oxgslcrsa01.oaifield.onasgn.com:8082/git/ops Commencing build of Revision 82668c25c3600f04d15fff63391e3b9364447717 (origin/master) Checking out Revision 82668c25c3600f04d15fff63391e3b9364447717 (origin/master) Email was triggered for: Before Build Sending email for trigger: Before Build Sending email to: [email protected] Waiting for the completion of SIT3_OPS_EXT4 SIT3_OPS_EXT4 #623 completed. Result was SUCCESS Build step 'Trigger/call builds on other projects' changed build result to SUCCESS Waiting for the completion of SIT3_BUILD_DB SIT3_BUILD_DB #862 completed. Result was SUCCESS Waiting for the completion of SIT3_TOP_PARENT SIT3_TOP_PARENT #555 completed. Result was SUCCESS Waiting for the completion of SIT3_EXCHANGE_PROXY SIT3_EXCHANGE_PROXY #806 completed. Result was SUCCESS Waiting for the completion of SIT3_SOLR SIT3_SOLR #841 completed. Result was SUCCESS Waiting for the completion of SIT3_DEPLOY_NODE SIT3_DEPLOY_NODE #697 completed. Result was SUCCESS Waiting for the completion of SIT3_OPS SIT3_OPS #788 completed. Result was SUCCESS Waiting for the completion of SIT3_OPS_Smoketest_Functional_Tests SIT3_OPS_Smoketest_Functional_Tests #752 completed. Result was SUCCESS [SIT3_Full_Rebuild_and_Deploy] $ /bin/sh -xe /tmp/hudson1142830593144261056.sh + git tag -f OPS_SIT3_LATEST Updated tag 'OPS_SIT3_LATEST' (was 1e57c10) Started indexing related Jira issue keys Successfully indexed related Jira issue keys Updating OPSD-2070 Updating OPSD-1994 Pushing tag OPS_SIT3_LATEST to repo origin Email was triggered for: Success Sending email for trigger: Success Sending email to: [email protected] Finished: SUCCESS

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions