saagie / updatarium

Updatarium : Update everything
Apache License 2.0
14 stars 6 forks source link

Bash engine should redirect stderror #113

Closed Y-Henry closed 4 years ago

Y-Henry commented 4 years ago

Describe the bug The bash action errors aren't redirect and then don't caugth by updatarium.

To Reproduce Try to run changeset :

changeSet(id = "ChangeSet-bash-1", author = "Bash") {
        bashAction(workingDir = "/tmp") {
            """
                    curlcdfqscdfqsbkj -I https://httpbin.org/get | grep -i Server &&\
                    pwd &&\
                    export | grep " PWD"
                """.trimIndent()
        }
    }

Expected behavior Get error : execution error bash: curlcdfqscdfqsbkj : commande introuvable

Actual behavior Empty error