Skip to content

shell script capture stdout errors #595

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

jschyz
Copy link

@jschyz jschyz commented Mar 13, 2017

在集成在jenkins中,npm run build 如果有错误,shell script 不能捕获这些错误信息,导致任务一直往下执行。

我在 build/build.js 添加如下

/* The exit command terminates a script */
if(stats.hasErrors()) {
  process.on('exit', function() {
    process.exit(2)
  })
}

In the integrated jenkins, If there is an error in the process of npm run build, the shell script can not capture these error messages, causing the task to continue until the next implementation.

/* The exit command terminates a script */
if(stats.hasErrors()) {
  process.on('exit', function() {
    process.exit(2)
  })
}

@QingWei-Li
Copy link

Any progress?

@LinusBorg
Copy link
Contributor

Sorry, merged a different PR thgat does something similar (#854)

@LinusBorg LinusBorg closed this Aug 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants