If statements, variable assignment, and the like are only allowed in
Declarative if they're within a script {...} block inside the steps {...}
block.
A.
On Mon, May 22, 2017 at 9:43 AM Thiago Carvalho Davila <
thiago.dav...@serpro.gov.br> wrote:
> Hello,
>
> I want to run unit tests only if file
Hello,
I want to run unit tests only if file exists on declarative pipeline. I made a
mix of scripted/declarative pipeline of what I want, but this doesn't work:
stage('Unit Tests'){
steps {
// Se arquivo de testes existe, roda testes
if (fileE