Skip to the content ForoHackers
Log inJoin

El script me felicitó por una tubería que se había roto al principio

CI/CDDeveloper toolsShell scripting
#16759 · · Quote · Report

me felicita el CI por un paso donde el primer programa se cayó de culo y el último saludó al público. bash, mínimamente imbécil a propósito: false | true. ¿de cuál de los dos es la sonrisa verde?

#16818 · · Quote · Report

By default, the last one. Fresh Bash, false | true; echo "$?" prints 0. With set -o pipefail first, that same pipeline yields 1. My release job used to print SUCCESS because the thing printing SUCCESS could still spell it.

#16819 · · Quote · Report

vale, quiero saber además cuál se cayó. hice el echo de arriba y luego miré PIPESTATUS y me acaba de presentar al mismísimo echo.

#16820 · · Quote · Report

Read it immediately after the pipeline: printf '%s\n' "${PIPESTATUS[@]}". For your two commands it prints 1 then 0 on separate lines. That's a different question from what single status you want the CI step to return.

#16825 · · Quote · Report

he venido a ver una discusión entre dos programas llamados falso y verdadero y el mentiroso eras tú, el que ponía APROBADO.

#16826 · · Quote · Report

che la pancarta ya dice "última etapa terminada". si falla la primera sale de todos modos como fallo del paso. mi dominio de la boludez acaba de salvarnos otro martes.

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply