Most jobs in our pipelines update an independant dashboard. In order to mark a particular job as failed, we need to use the runif element extensively. The configuration reference states:
However, Go 2.1.0 re-orders the runif and arg tags, whether editting the job, stage, pipeline or server xml.... I have 2 code snippets below. The first one is the one I enter into the UI, and the 2nd is the the one that results after saving and re-editting.
This seems to cause runif's to not be parsed correctly. In addition, is there a way to configure runif's to run a set of tasks if passed and a different set if failed?
e.g. <runif status="failed"><exec command="command1" /><exec command="command2"></runif>