Unable to hide sh step on jenkins pipeline
Asked Answered
G

0

6

I am unable to hide the execution of an sh step on my jenkins pipeline on the Blue Ocean view, my Jenkinsfile looks like this:

sh '#!/bin/sh -e\n' + "curl -s -u..."

I have tried multiple variants and cannot get it to work, even tho have made this worked before. :/ Any suggestions of what might be wrong might be appreciated

Cannot hide

P.S: I know I can/should use the Credentials plugin to hide my passwords just hadn't done it just yet

Gnash answered 31/3, 2019 at 3:43 Comment(3)
I'm having the same problem. Also tried that bin/sh -e approach... that at least hides the spam you don't want to see. But it still shows up in BlueOcean. Unfortunately, I don't think this will ever be possible to hide as Jenkins devs have this inane philosophy that they know better than their users what their users should or shouldn't want to do.Reviewer
Things like this make you consider to switch to CircleCI or Github Actions. They seem to have stopped developing on the product long time ago, same shitty interface, same bugs, same restrictions no matter how long you waitBioecology
@Zucca, I opened ticket to jenkins issues.jenkins.io/browse/JENKINS-68062 and they provided some workarounds.Arguelles

© 2022 - 2024 — McMap. All rights reserved.