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.

Patches not being applied during Jenkins builds

See original GitHub issue

I have installed patch-package to use in my react-app and running locally, everything works fine. With an update to date patch file, running yarn && yarn run build correctly applies the patches.

However, when Jenkins tries to run yarn && yarn run build, the patches do not get applied correctly. I have tried installing both patch-packaage and postinstall-postinstall as both a regular dependency and a dev dependency.

Is there any other obvious steps I might be missing here? Has anyone tried using this package with a deployment process, such as Circle CI or Jenkins?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ds300commented, Jan 17, 2019

Updating to patch-package@beta should fix the problem if it’s git related, since we no longer use git. You might need to recreate your patch files. I’m working on backwards compatibility or at least an upgrade path.

On Thu, 17 Jan 2019, 18:59 Patrick Cooney, notifications@github.com wrote:

Has anyone figured out how to get this working with Zeit now? I’ve tried both postinstall-postinstall and postinstall-prepare but neither seems to be working. The build just hangs 😕

There are a few discussions here: zeit/now-cli#1666 https://github.com/zeit/now-cli/issues/1666 zeit/now-cli#1661 https://github.com/zeit/now-cli/issues/1661 zeit/now-builders#49 https://github.com/zeit/now-builders/issues/49

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/ds300/patch-package/issues/97#issuecomment-455289179, or mute the thread https://github.com/notifications/unsubscribe-auth/ABL1qWcLIktfDTlZ_sz-YcDwZVZ7_ywfks5vEMf0gaJpZM4Y5sb1 .

1reaction
sergoniuscommented, Jan 16, 2019

Forgot to update here, but I used the description here to set it up: https://www.npmjs.com/package/patch-package And prepare failed for me whereas postinstall worked.

Perhaps the npmjs page should be updated?

Read more comments on GitHub >

github_iconTop Results From Across the Web

patch-parameter - Jenkins Plugins
Defines a new parameter type that allows users to submit a patch, to be applied before a build.
Read more >
ReviewBot plugin fails after 'apply patch' - Jenkins Jira
I have setup the reviewBot plugin in Jenkins to get the patch from RB. The Jenkins - RB connection works fine. The patch...
Read more >
[JENKINS-70162] Aborting patch sets with same topic doesn't ...
Using the "Abort patch sets with same topic" option in the 2.37.0 no longer aborts the previously triggered builds. I can see the...
Read more >
Job status not updated in web UI during build - Jenkins Jira
Job status is not updated in the web browser during build. The progress bar appears and the dot starts blinking, but they never...
Read more >
[JENKINS-31487] Job status not updated in web UI during build
There were two issues preventing the build history from updating properly: 1) The next build number being fetched wasn't taking into account running...
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