adametry / gulp-eslint

A Gulp plugin for identifying and reporting on patterns found in ECMAScript/JavaScript code.
MIT License
563 stars 118 forks source link

Process not exited with code 1 #226

Open HawkeyePierce89 opened 6 years ago

HawkeyePierce89 commented 6 years ago

// 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