►
From YouTube: Job status using exit code
Description
No description was provided for this meeting.
If this is YOUR meeting, an easy way to fix this is to add a description to your video, wherever mtngs.io found it (probably YouTube).
A
A
Obviously
you
can
read
all
about
it
on
our
release,
post,
13.8
or
in
our
documentation,
but
I'm
here
to
give
you
a
demo.
So,
let's
start,
as
you
can
see,
I've
created
a
simple
pre-stage
pipeline.
I
can
use
the
visualization
type
to
see.
So
I
have
three
stage
three
job
very
simple
pipeline
and
the
thing
about
this
job
is
that
this
pipeline
is
that
the
first
build
job
return,
an
exit
code
of
125,
test
job
and
deploy
job
will
return
and
exit
0
and
0.,
so
exit
125
or
any
other
exit
code.
A
Besides,
zero
means
that
the
job
will
be
failed.
So
if
I'm
gonna
remove
this
for
a
second,
if
I'm
going
to
run
this
pipeline,
the
first
job-
and
I
can
use
the
lint
here-
the
first
job
will
return.
The
value
of
125
means
that
this
job
will
fail
and
it
will
fail
the
entire
pipeline
and
the
test
and
the
deploy
will
not
run
at
all
and
the
pipeline
will
be
failed.
A
A
A
A
They
get
like
an
exit
code
which
is
okay
and
should
not
fail
the
pipeline,
and
we
failed
the
pipeline.
Now.
What
we
could
do
is
we
could
tell
them.
Okay
use
the
allow
failure,
okay,
why
shouldn't
they
use
the
allow
failure
to
and
get
rid
of
all
these
exit
codes,
and
the
reason
is
that
it
depends
on
the
exit
code,
because
here
it's
either
pass
or
fail,
but
this
feature
provide
you
with
much
bigger
granularity.