question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

🐛 BUG: Wrangler Publish breaks Jenkins builds

See original GitHub issue

What version of Wrangler are you using?

2.1.1

What operating system are you using?

node:gallium-alpine3.14

Describe the Bug

Our Jenkins Pipeline uses wrangler on a docker image to publish our Cloudflare workers. This latest build has broken our pipelines when you make a manual change. It is prompting the user to overwrite the manual changes, which breaks our pipeline:

 ⛅️ wrangler 2.1.1 
-------------------
▲ [WARNING] You are about to publish a Workers Service that was last published via the Cloudflare Dashboard.

  		Edits that have been made via the dashboard will be overridden by your local code and config.


Would you like to continue? (y/n)
Would you like to continue? (y/n)
Error: Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default.

Steps to reproduce:

  1. Create a worker by code and publish to a git repository
  2. Create a Docker file to install wrangler and run wrangler publish
  3. Create a Jenkins Pipeline to build and execute the Docker file
  4. Manually change the published worker using Quick edit feature in Cloudflare Dashboard
  5. Make a change to the worker in code and push to git repo
  6. Run Jenkins Pipeline again - This will fail due to the prompt.

Temporary solution: Use wrangler 2.0.29

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
threepointonecommented, Sep 13, 2022

You could show the warning, but no interactive dialogs should present themselves in stuff like CI. That’s the fix for this issue at the moment.

Regarding the broader point of not encouraging and making it an error, it’s a breaking change and should be rolled out accordingly, probably in a major.

0reactions
iTechTonyChristophercommented, Sep 13, 2022

Amazing, really fast response. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Converting Conditional Build Steps to Jenkins Pipeline
In this post, we'll take a look at how we might converting Freestyle jobs that include conditional build steps to Jenkins Pipeline.
Read more >
Show current state of Jenkins build on GitHub repo
Ok, here's how you can set up Jenkins to set GitHub build statuses. This assumes you've already got Jenkins with the GitHub plugin...
Read more >
Advanced Jenkins Parallel Builds | Incredibuild
All of a sudden you could define a job with a comfortable declarative DSL, break down a single job into multiple stages, and...
Read more >
weathertech.com face shield
Save your windshield from getting covered with bugs on your next long trip! ... in Textured Black for 18-22 Jeep Wrangler JL &...
Read more >
6 New DDoS Attack Types and How They Affect Your Security
A vulnerability was identified, which made it possible to launch DDoS attacks with Jenkins. While the bug was fixed, the vulnerability shed light...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found