https://pulumi.com logo
Title
s

sparse-architect-77996

02/01/2023, 11:57 AM
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
error: --yes or --skip-preview must be passed in to proceed when running in non-interactive mode
Does anyone have an idea?
e

echoing-dinner-19531

02/01/2023, 1:29 PM
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

sparse-architect-77996

02/01/2023, 1:31 PM
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

echoing-dinner-19531

02/01/2023, 1:32 PM
s

sparse-architect-77996

02/01/2023, 1:32 PM
Yes 😄
e

echoing-dinner-19531

02/01/2023, 1:33 PM
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

sparse-architect-77996

02/01/2023, 1:34 PM
Alright, no worries. I will try to work around it. Hopefully my feature request can be picked up at some time 👍
e

echoing-dinner-19531

02/01/2023, 1:35 PM
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

sparse-architect-77996

02/01/2023, 1:35 PM
Perfect!