nomad cli job run -detach on promotion-ready, fail exit code if reverted, clarify eval status -t go templates #10810
Labels
stage/accepted
Confirmed, and intend to work on. No timeline committment though.
theme/cli
theme/deployments
type/enhancement
Nomad 1.1.2. This is about #6818
We'd like to have an ability to detach
nomad job run
right after deployment becomes ready for promotion (all allocations are placed and healthy). This is needed for finishing CI deployment job and not locking it for hours/days (if testing before promotion requires long time).Before
-detach
option we did it manually by runningnomad deployment status
and checking its output. But now with-detach
option we can only getEvaluation ID
but notDeployment id
.nomad eval status
doesn't printdeployment id
. It has-t
option which is not well documented - we haven't found a way to printdeployment id
.timeout 2 nomad job run ...
without-detach
allows to see deployment id, but that's rather a hack.Another great option would be
-fail-on-revert
or like so. This is needed to exit with non zero code if the deployment was reverted, currently we always getting0
, even with unsuccessful deployment, so we have to parsenomad job run
output to determine this.The text was updated successfully, but these errors were encountered: