Hello,

Is there any way that I can say "Latest-1" ?
>

I am afraid this is not possible.  

When a pipeline is scheduled a corresponding entry is made in the pipelines 
and stages table. When you make a request to fetch the artifacts with the 
'latest' keyword, e.g https://build.gocd.io/go/files/build-linux/*latest*
/build-non-server/*latest*/agent/cruise-output/console.log 'latest' is 
resolved to latest pipeline 'counter' and latest stage 'counter' by 
querying the pipeline and stages table. Therefore, as mentioned by you 
'latest' could point to a pipeline instance which is in progress.

You may consider querying the pipeline history api[1] and deriving the 
pipeline_counter and stage_counter of the latest successful run of the 
pipeline.

[1] https://api.gocd.io/current/#get-pipeline-history

Thanks,
Mahesh

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to