dwp / queue-triage

DLQ processing support
MIT License
5 stars 4 forks source link

Travis isn’t tagging the build with a release tag anymore #169

Closed amcghie closed 6 years ago

amcghie commented 6 years ago

As part of Issue #154 the scripts to create the Mongo users, roles and indexes was changed to use Python. When the script is executed on the build slave this generates a mongoUtils.pyc file.
When the verifyRelease task runs it identifies this file as untracked and fails (silently as the release task runs as a phase after the main build). See extract from the logs below:

Tasks to be executed: [task ':verifyRelease', task ':release']
:verifyRelease (Thread[Task worker for ':',5,main]) started.
:verifyRelease
Task ':verifyRelease' is not up-to-date because:
  Task has not declared any outputs.
Looking for uncommitted changes.. FAILED
Staged changes:
Unstaged changes:
    added: core/dao-mongo/src/main/resources/mongoUtils.pyc
:verifyRelease FAILED
:verifyRelease (Thread[Task worker for ':',5,main]) completed. Took 0.389 secs.
FAILURE: Build failed with an exception.
amcghie commented 6 years ago

Issue resolved. Build now tagged.

Selected primary task 'release' from project :
All projects evaluated.
Tasks to be executed: [task ':verifyRelease', task ':release']
:verifyRelease (Thread[Task worker for ':',5,main]) started.
:verifyRelease
Task ':verifyRelease' is not up-to-date because:
  Task has not declared any outputs.
Looking for uncommitted changes.. 
Skipping ahead of remote check
Checking for snapshot versions.. 
:verifyRelease (Thread[Task worker for ':',5,main]) completed. Took 0.317 secs.
:release (Thread[Task worker for ':',5,main]) started.
:release
Task ':release' is not up-to-date because:
  Task has not declared any outputs.
Creating tag: queue-triage-1.0.12
Pushing all to remote: origin
:release (Thread[Task worker for ':',5,main]) completed. Took 3.332 secs.