I have a pipeline that is configured with a timer. the only stage fetches an artifact from the upstream pipeline and then runs some other tasks. Is it possible (how?) to configure the pipeline so that the upstream artifact is only retrieved from the repository if there is an upstream version (label) change? The labeltemplate of the upstream is set to the svn revision. The downstream pipeline has a <fetchartifact> task to retrieve the artifact.
Comments
2 comments
Hi Brett,
Instead of using a timer, can you try making the stage as automatically triggered as shown in below example?
The pipeline needs to run hourly.
I resolved this by changing the upstream pipelines definition. The task of the upstream is a local bash script, called via exec. The bash script now copies the artifact needed by the downstream to a local directory, and the downstream pipeline runs a script that uses the artifact in that directory. no "fetchmaterials" task is required any more.
Please sign in to leave a comment.