Fallo en una compilación en Jenkinsfile
Bajo ciertas condiciones quiero fallar la compilación. ¿Cómo hago eso?
Lo intenté:
throw RuntimeException("Build failed for some specific reason!")
Esto de hecho falla la compilación. Sin embargo, el registro muestra la excepción:
org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use new java.lang.RuntimeException java.lang.String
Que es un poco confuso para los usuarios. Hay una manera mejor?
33
Author: Jesse Glick, 2016-06-07
1 answers
Puede utilizar el error
paso de la tubería DSL para fallar la compilación actual.
error("Build failed because of this and that..")
82
Author: StephenKing,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-06-07 17:49:50
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-06-07 17:49:50