Page MenuHomeDevCentral

Check if last version Git tag exists
ClosedPublic

Authored by dereckson on Thu, Nov 28, 11:05.
Tags
None
Referenced Files
F3908420: D3605.diff
Wed, Dec 18, 14:41
F3907529: D3605.id9326.diff
Wed, Dec 18, 09:53
F3907527: D3605.id9320.diff
Wed, Dec 18, 09:53
Unknown Object (File)
Fri, Dec 13, 20:04
Unknown Object (File)
Fri, Dec 13, 12:37
Unknown Object (File)
Sat, Dec 7, 02:52
Unknown Object (File)
Fri, Dec 6, 20:06
Unknown Object (File)
Fri, Dec 6, 15:28
Subscribers
None

Details

Summary

Last upgrade to 4.9.2 created the tag "latest" on Docker Hub,
but not the tag "4.9.2", as the Git tag was missing.

More generally, tags management (tag locally, push tags) is prone to errors
for repositories where packages publishing depends of tags definition.

This Jenkins pipeline detect that case and suggest a simple way to ensure
the expected new tag is pushed to the reference repository.

Test Plan
  • Created on ci.nasqueron.org a pipeline docker-openfire-sandbox project
  • Run the job with that Jenkinsfile Groovy code, build pass

Diff Detail

Repository
rDO Docker image for Openfire
Lint
Lint Passed
Unit
No Test Coverage
Branch
ensure-last-tag-is-pushed
Build Status
Buildable 5758
Build 6040: arc lint + arc unit

Event Timeline

dereckson created this revision.
This revision is now accepted and ready to land.Thu, Nov 28, 15:10
This revision was automatically updated to reflect the committed changes.

Deleted docker-openfire-sandbox, created multibranch project with automatic Jenkinsfile detection "docker-openfire".

First build @ https://ci.nasqueron.org/job/docker-openfire/job/main/