Skip to content
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

Process not exited with code 1 #226

Open
HawkeyePierce89 opened this issue May 10, 2018 · 0 comments
Open

Process not exited with code 1 #226

HawkeyePierce89 opened this issue May 10, 2018 · 0 comments

Comments

@HawkeyePierce89
Copy link

// To have the process exit with an error code (1) on
// lint error, return the stream and pipe to failAfterError last.

It's not working, I have a task

gulp.task('checkJS', function (){
    return gulp
        .src(['src/app/**/*.js', '!**/*tests.js'])
        .pipe(plugins.eslint())
        .pipe(plugins.eslint.format('table'))
        .pipe(plugins.eslint.failAfterError());
});

But in TeamCity process not exited with code 1

[05:13:16][Step 1/4] [08:13:16] 'checkJS' errored after 2.79 s
[05:13:16][Step 1/4] [08:13:16] ESLintError in plugin "gulp-eslint"
[05:13:16][Step 1/4] Message:
[05:13:16][Step 1/4] Failed with 1 error
[05:13:16][Step 1/4] Process exited with code 0

[05:13:16]Step 2/4: Create package (PowerShell)
[05:13:16][Step 2/4] PowerShell Executable: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
[05:13:16][Step 2/4] Working directory: C:\BuildAgent\work\451b0d0625924e80\ProjectName\Install
[05:13:16][Step 2/4] Command: C:\Windows\sysnative\WindowsPowerShell\v1.0\powershell.exe
[05:13:16][Step 2/4] PowerShell arguments: -NoProfile, -NonInteractive, -ExecutionPolicy, ByPass, -File, C:\BuildAgent\work\451b0d0625924e80\ProjectName\Install\create.ps1, -command, create, -files, ..\build*, -outputFile, ....\package.zip, -subDirectory, js
[05:13:16][Step 2/4] ..\build* doesnot exist
[05:13:16][Step 2/4] At C:\BuildAgent\work\451b0d0625924e80\ProjectName\Install\create.ps1:62 char:9
[05:13:16][Step 2/4] + throw "$files doesnot exist"
[05:13:16][Step 2/4] + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[05:13:16][Step 2/4] + CategoryInfo : OperationStopped: (..\build* doesnot exist:String) [], RuntimeException
[05:13:16][Step 2/4] + FullyQualifiedErrorId : ..\build* doesnot exist
[05:13:16][Step 2/4]
[05:13:16][Step 2/4] Process exited with code 1
[05:13:16][Step 2/4] Process exited with code 1
[05:13:16][Step 2/4] Step Create package (PowerShell) failed
[05:13:16]Step 3/4: Add Install to package (PowerShell)
[05:13:16][Step 3/4] Build step Add Install to package (PowerShell) is skipped because the previous step has failed

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

No branches or pull requests

1 participant