FailedConsole Output

Started by GitHub push by Andrei-Straut
Building in workspace /home/wildfly/.jenkins/workspace/jenkins-api-ts-typings-master
 > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > /usr/bin/git config remote.origin.url https://github.com/Andrei-Straut/jenkins-api-ts-typings # timeout=10
Fetching upstream changes from https://github.com/Andrei-Straut/jenkins-api-ts-typings
 > /usr/bin/git --version # timeout=10
using GIT_ASKPASS to set credentials 
 > /usr/bin/git fetch --tags --progress https://github.com/Andrei-Straut/jenkins-api-ts-typings +refs/heads/*:refs/remotes/origin/*
 > /usr/bin/git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > /usr/bin/git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 9e056fafc7da257b14eefbf56089ea789f7fb4af (refs/remotes/origin/master)
 > /usr/bin/git config core.sparsecheckout # timeout=10
 > /usr/bin/git checkout -f 9e056fafc7da257b14eefbf56089ea789f7fb4af
Commit message: "Pass library to es5 with "var" instead of "let""
 > /usr/bin/git rev-list 277bbc039bc716d764172f2402e3e5638b55f62d # timeout=10
[jenkins-api-ts-typings-master] $ /bin/sh -xe /tmp/jenkins5648773916743906121.sh
+ npm install
up to date in 5.281s
+ npm run test:prod

> jenkins-api-ts-typings@0.8.0 test:prod /home/wildfly/.jenkins/workspace/jenkins-api-ts-typings-master
> npm run lint && npm run test -- --coverage --no-cache


> jenkins-api-ts-typings@0.8.0 lint /home/wildfly/.jenkins/workspace/jenkins-api-ts-typings-master
> tslint --project tsconfig.json -t codeFrame 'src/**/*.ts'

/home/wildfly/.jenkins/workspace/jenkins-api-ts-typings-master/src/JenkinsAction.ts
Forbidden 'var' keyword, use 'let' or 'const' instead (no-var-keyword)
  48 |     
  49 |     public fromJsonString(json: string) {
> 50 |         var data:JSON = JSON.parse(json);
     |        ^
  51 |         this.jsonData = data;
  52 |         
  53 |         this.fromJson(data);

Forbidden 'var' keyword, use 'let' or 'const' instead (no-var-keyword)
  61 |         }
  62 |         
> 63 |         var objectData:Map<string, any> = new Map<string, any>();
     |        ^
  64 |         Object.keys(data).filter(key => key !== "_class").forEach(function(key) {
  65 |             objectData.set(key, (data as any)[key]);
  66 |         });


/home/wildfly/.jenkins/workspace/jenkins-api-ts-typings-master/src/JenkinsBuild.ts
Forbidden 'var' keyword, use 'let' or 'const' instead (no-var-keyword)
  48 |     
  49 |     public fromJsonString(json: string): void {
> 50 |         var data:JSON = JSON.parse(json);
     |        ^
  51 |         this.jsonData = data;
  52 |         
  53 |         this.fromJson(data);


/home/wildfly/.jenkins/workspace/jenkins-api-ts-typings-master/src/JenkinsChangeSet.ts
Forbidden 'var' keyword, use 'let' or 'const' instead (no-var-keyword)
  31 |     
  32 |     public fromJsonString(json: string) {
> 33 |         var data:JSON = JSON.parse(json);
     |        ^
  34 |         this.jsonData = data;
  35 |         
  36 |         this.fromJson(data);

Forbidden 'var' keyword, use 'let' or 'const' instead (no-var-keyword)
  45 |         
  46 |         if(data.hasOwnProperty("affectedPaths")) {
> 47 |             var paths:Array<string> = ((data as any)["affectedPaths"]) as Array<string>;
     |            ^
  48 |             
  49 |             for(var affectedPath of paths) {
  50 |                 this.affectedPaths.push(affectedPath);

Forbidden 'var' keyword, use 'let' or 'const' instead (no-var-keyword)
  47 |             var paths:Array<string> = ((data as any)["affectedPaths"]) as Array<string>;
  48 |             
> 49 |             for(var affectedPath of paths) {
     |                ^
  50 |                 this.affectedPaths.push(affectedPath);
  51 |             }
  52 |         }


/home/wildfly/.jenkins/workspace/jenkins-api-ts-typings-master/src/JenkinsHealthReport.ts
Forbidden 'var' keyword, use 'let' or 'const' instead (no-var-keyword)
  16 |     
  17 |     public fromJsonString(json: string): void {
> 18 |         var data:JSON = JSON.parse(json);
     |        ^
  19 |         this.jsonData = data;
  20 |         
  21 |         this.fromJson(data);


/home/wildfly/.jenkins/workspace/jenkins-api-ts-typings-master/src/JenkinsJob.ts
Forbidden 'var' keyword, use 'let' or 'const' instead (no-var-keyword)
  58 |     
  59 |     public fromJsonString(json: string): void {
> 60 |         var data:JSON = JSON.parse(json);
     |        ^
  61 |         this.jsonData = data;
  62 |         
  63 |         this.fromJson(data);


/home/wildfly/.jenkins/workspace/jenkins-api-ts-typings-master/src/JenkinsNode.ts
Forbidden 'var' keyword, use 'let' or 'const' instead (no-var-keyword)
  40 |     
  41 |     public fromJsonString(json: string) {
> 42 |         var data:JSON = JSON.parse(json);
     |        ^
  43 |         this.jsonData = data;
  44 |         
  45 |         this.fromJson(data);


/home/wildfly/.jenkins/workspace/jenkins-api-ts-typings-master/src/JenkinsTimeInQueueAction.ts
Forbidden 'var' keyword, use 'let' or 'const' instead (no-var-keyword)
  24 |     
  25 |     public fromJsonString(json: string) {
> 26 |         var data:JSON = JSON.parse(json);
     |        ^
  27 |         this.jsonData = data;
  28 |         
  29 |         this.fromJson(data);


/home/wildfly/.jenkins/workspace/jenkins-api-ts-typings-master/src/JenkinsUser.ts
Forbidden 'var' keyword, use 'let' or 'const' instead (no-var-keyword)
  23 |     
  24 |     fromJsonString(json: string): void {
> 25 |         var data:JSON = JSON.parse(json);
     |        ^
  26 |         this.jsonData = data;
  27 |         
  28 |         this.fromJson(data);


/home/wildfly/.jenkins/workspace/jenkins-api-ts-typings-master/src/JenkinsView.ts
Forbidden 'var' keyword, use 'let' or 'const' instead (no-var-keyword)
  26 |     
  27 |     public fromJsonString(json: string) {
> 28 |         var data:JSON = JSON.parse(json);
     |        ^
  29 |         this.jsonData = data;
  30 |         
  31 |         this.fromJson(data);


npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! jenkins-api-ts-typings@0.8.0 lint: `tslint --project tsconfig.json -t codeFrame 'src/**/*.ts'`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the jenkins-api-ts-typings@0.8.0 lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/wildfly/.npm/_logs/2017-11-20T14_44_39_654Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! jenkins-api-ts-typings@0.8.0 test:prod: `npm run lint && npm run test -- --coverage --no-cache`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the jenkins-api-ts-typings@0.8.0 test:prod script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/wildfly/.npm/_logs/2017-11-20T14_44_39_669Z-debug.log
Build step 'Execute shell' marked build as failure
Archiving artifacts
Recording test results
ERROR: Step ‘Publish JUnit test result report’ failed: Test reports were found but none of them are new. Did leafNodes run? 
For example, /home/wildfly/.jenkins/workspace/jenkins-api-ts-typings-master/dist/test-report.xml is 10 days old

Publishing Clover coverage report...
Publishing Clover HTML report...
Publishing Clover XML report...
Publishing Clover coverage results...
[Set GitHub commit status (universal)] FAILURE on repos [GHRepository@4f9e5341[description=Jenkins JSON API TypeScript Typings,homepage=https://www.npmjs.com/package/jenkins-api-ts-typings,name=jenkins-api-ts-typings,license=<null>,fork=false,size=106,milestones={},language=TypeScript,commits={},source=<null>,parent=<null>,responseHeaderFields={null=[HTTP/1.1 200 OK], Access-Control-Allow-Origin=[*], Access-Control-Expose-Headers=[ETag, Link, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval], Cache-Control=[private, max-age=60, s-maxage=60], Content-Encoding=[gzip], Content-Security-Policy=[default-src 'none'], Content-Type=[application/json; charset=utf-8], Date=[Mon, 20 Nov 2017 14:44:41 GMT], ETag=[W/"dfcf3563d206f787741d5e08dcb2763b"], Last-Modified=[Sat, 23 Sep 2017 14:41:56 GMT], OkHttp-Received-Millis=[1511189081614], OkHttp-Response-Source=[CONDITIONAL_CACHE 200], OkHttp-Selected-Protocol=[http/1.1], OkHttp-Sent-Millis=[1511189081470], Server=[GitHub.com], Status=[200 OK], Strict-Transport-Security=[max-age=31536000; includeSubdomains; preload], Transfer-Encoding=[chunked], Vary=[Accept, Authorization, Cookie, X-GitHub-OTP], X-Accepted-OAuth-Scopes=[repo], X-Content-Type-Options=[nosniff], X-Frame-Options=[deny], X-GitHub-Media-Type=[github.v3; format=json], X-GitHub-Request-Id=[8DD8:5BBA:730AE0:F5CEFC:5A12EA59], X-OAuth-Scopes=[admin:repo_hook, notifications, public_repo, read:public_key, read:user, repo:status, repo_deployment], X-RateLimit-Limit=[5000], X-RateLimit-Remaining=[4996], X-RateLimit-Reset=[1511192596], X-Runtime-rack=[0.054321], X-XSS-Protection=[1; mode=block]},url=https://api.github.com/repos/Andrei-Straut/jenkins-api-ts-typings,id=100035495]] (sha:9e056fa) with context:jenkins-api-ts-typings-master
Setting commit status on GitHub for https://github.com/Andrei-Straut/jenkins-api-ts-typings/commit/9e056fafc7da257b14eefbf56089ea789f7fb4af
Finished: FAILURE