Hi there, I'm having difficulties overriding the C...
# general
s
Hi there, I'm having difficulties overriding the CI detection mechanism in Jenkins. I tried adding PULUMI_DISABLE_CI_DETECTION=1 and JENKINS_URL="" but pulumi refresh is still complaining about
Copy code
error: --yes or --skip-preview must be passed in to proceed when running in non-interactive mode
Does anyone have an idea?
e
Pass
--yes
as the error message says, this is because your in a non-interactive environment so pulumi can't ask for confirmation with a prompt
s
Hi, thanks for your suggestion. But that was not what I was looking for 🙂 I was looking for a --no flag or something similar, so that the refresh doesn't actually run
e
s
Yes 😄
e
Yeh there isn't a good workaround for this at the moment. If you could trick pulumi into thinking it had a pty attached with just "Return" in the input stream that might work (I think the prompt defaults to no), but it's not great
s
Alright, no worries. I will try to work around it. Hopefully my feature request can be picked up at some time 👍
e
Yeh it would be quite easy to change that behaviour, just need to get a few other devs to sanity check it would be ok to do so
s
Perfect!