pepper icon indicating copy to clipboard operation
pepper copied to clipboard

Make pepper have different exit code if something failed during the state

Open mattiasr opened this issue 6 years ago • 3 comments

If i have a failing scenario, pepper report '0' after it's done. I would like to have the option to change exitcode if all states doesn't return true, so i can integrate this in my CI environment.

mattiasr avatar Mar 15 '18 09:03 mattiasr

Are you talking about with the pepper commandline too or with the libpepper python api?

Thanks, Daniel

gtmanfred avatar Mar 16 '18 15:03 gtmanfred

Ok, after looking, we were only recently able to get the exit code back from salt, once the full_return variable was added to localclient.

I will look at implementing this.

Thanks! Daniel

gtmanfred avatar Mar 16 '18 15:03 gtmanfred

Just to clarify, i was talking about the cli tool pepper. How far into the future do you plan for this feature? I would really much like it for our CI/CD

mattiasr avatar Mar 22 '18 09:03 mattiasr