Page MenuHomeDevCentral

Check if last version Git tag exists
ClosedPublic

Authored by dereckson on Nov 28 2024, 11:05.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Aug 29, 00:07
Unknown Object (File)
Wed, Aug 27, 09:27
Unknown Object (File)
Tue, Aug 26, 21:04
Unknown Object (File)
Mon, Aug 25, 19:20
Unknown Object (File)
Mon, Aug 25, 07:26
Unknown Object (File)
Tue, Aug 19, 07:35
Unknown Object (File)
Mon, Aug 18, 08:53
Unknown Object (File)
Fri, Aug 15, 14:52
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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson created this revision.
This revision is now accepted and ready to land.Nov 28 2024, 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/