How to fix ‘script returned exit code 1’ when run Jenkins pipeline

  Kiến thức lập trình

I’m setting up a Jenkins pipeline to build a React application. The build command works fine on my local system, but when executed in the pipeline, it returns an error with exit code 1. How can I troubleshoot and fix this issue?

how to fix this issue?This is my pipeline script
enter image description here

New contributor

sarfraz ahmad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

You should be able to see logs in Jenkins web interface. Either

  • under your failed job of your project (structured),
  • either in administration submenu (long)

LEAVE A COMMENT