Page MenuHomeDevCentral

Check if last version Git tag exists
ClosedPublic

Authored by dereckson on Thu, Nov 28, 11:05.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 4, 04:04
Unknown Object (File)
Tue, Dec 3, 13:48
Unknown Object (File)
Tue, Dec 3, 08:03
Unknown Object (File)
Tue, Dec 3, 08:03
Unknown Object (File)
Tue, Dec 3, 03:45
Unknown Object (File)
Sat, Nov 30, 17: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 Not Applicable
Unit
Tests Not Applicable

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/