1

using a minimal jenkinsfile as an example

node("master") {
    stage("Test") {
        sh(
            label: "THIS SHOULD DISPLAY",
            script: "set -e; echo 'this should not be logged it is secret'"
        )
    }
}

For some reason the following occurs

blue ocean logs

I'm not sure what's going on here. Ideally I want the cmand not to be displayed and the label to take the place of the command.

2
  • The screenshot does not seem to match your code. It has set +x. Do you have a screenshot of the code you shared? – ssc327 2 days ago
  • Can you also show a screenshot with the step expanded (click that arrow) – ssc327 2 days ago

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.