0 Replies Last post: Jun 27, 2013 8:20 PM by Troy Goode  
Troy Goode Newbie 5 posts since
Jun 5, 2009
Currently Being Moderated

Jun 27, 2013 8:20 PM

how to determine current build status (SUCCESS, FAIL) within a custom build step script

I'd like to have a script like this:


if [[ %build.status% == "SUCCESS" ]]
  curl http://example.com/success
  curl http://example.com/fail


but I see no way to retrieve the current build status from within a build step. Is there a way to accomplish this? Alternatively is there a way to set the step execution policy to "Only if previous step was NOT successful"?

More Like This

  • Retrieving data ...