-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(pkg) Upgrade for Node 14 from Node 12
v2 was only compatible with Node 12. These changes upgrade the code to be compatible Node 14. - Fix how to tail a file and utilize the upgraded fs - Implemented modern eslint rules. - Adding deprecation warning as `logdna-agent` will lose support
- Loading branch information
1 parent
c352dcd
commit f0d219d
Showing
18 changed files
with
349 additions
and
503 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
def TRIGGER_PATTERN = ".*@logdnabot.*" | ||
def PROJECT_NAME = "logdna-agent" | ||
|
||
pipeline { | ||
agent {label 'ec2-fleet'} | ||
|
||
options { | ||
timestamps() | ||
ansiColor 'xterm' | ||
} | ||
|
||
triggers { | ||
issueCommentTrigger(TRIGGER_PATTERN) | ||
} | ||
|
||
environment { | ||
NPM_CONFIG_CACHE = '.npm' | ||
NPM_CONFIG_USERCONFIG = '.npmrc' | ||
SPAWN_WRAP_SHIM_ROOT = '.npm' | ||
} | ||
|
||
stages { | ||
stage('Test Suite') { | ||
matrix { | ||
axes { | ||
axis { | ||
name 'NODE_VERSION' | ||
values '14', '16' | ||
} | ||
} | ||
|
||
when { | ||
not { | ||
changelog '\\[skip ci\\]' | ||
} | ||
} | ||
|
||
|
||
agent { | ||
docker { | ||
image "us.gcr.io/logdna-k8s/node:${NODE_VERSION}-ci" | ||
customWorkspace "${PROJECT_NAME}-${BUILD_NUMBER}" | ||
} | ||
} | ||
|
||
stages { | ||
stage('Install') { | ||
steps { | ||
sh "mkdir -p ${NPM_CONFIG_CACHE} coverage" | ||
sh 'npm install' | ||
} | ||
} | ||
|
||
stage('Test') { | ||
steps { | ||
sh 'npm test' | ||
} | ||
|
||
post { | ||
always { | ||
publishHTML target: [ | ||
allowMissing: false, | ||
alwaysLinkToLastBuild: false, | ||
keepAll: true, | ||
reportDir: 'coverage/lcov-report', | ||
reportFiles: 'index.html', | ||
reportName: "coverage-node-v${NODE_VERSION}" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.