-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: start using package-lock.json for repeatable Lambda Layer buil…
…ds (#2627) Use node v16 for npm v8 for lockfileVersion:2. Move authoritative lambda layer zip building to "dev-utils/make-lambda-layer-zip.sh" and get it to use the package-lock file. Add a .nvmrc file as a convenience and a hint at the suggested base node version to use for local dev. Closes: #2626
- Loading branch information
Showing
9 changed files
with
30,186 additions
and
41 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ pipeline { | |
NOTIFY_TO = '[email protected]' | ||
NPMRC_SECRET = 'secret/jenkins-ci/npmjs/elasticmachine' | ||
TOTP_SECRET = 'totp/code/npmjs-elasticmachine' | ||
NODE_VERSION = 'v14.17.5' | ||
BUILD_NODE_VERSION = 'v16.15.0' | ||
} | ||
options { | ||
timeout(time: 3, unit: 'HOURS') | ||
|
@@ -291,7 +291,7 @@ pipeline { | |
setEnvVar('RELEASE_NOTES_URL', getReleaseNotesUrl()) | ||
deleteDir() | ||
unstash 'source' | ||
withNodeJSEnv(version: "${env.NODE_VERSION}"){ | ||
withNodeJSEnv(version: "${env.BUILD_NODE_VERSION}"){ | ||
dir("${BASE_DIR}"){ | ||
cmd(label: 'make dist', script: 'make -C .ci dist') | ||
} | ||
|
@@ -318,18 +318,18 @@ pipeline { | |
} | ||
} | ||
} | ||
stage('Release Notes') { | ||
stage('GitHub Release') { | ||
steps { | ||
withGhEnv(forceInstallation: true, version: '2.4.0') { | ||
dir("${BASE_DIR}"){ | ||
cmd(label: 'make release-notes', script: 'make -C .ci release-notes') | ||
cmd(label: 'make github-release', script: 'make -C .ci github-release') | ||
} | ||
} | ||
} | ||
} | ||
stage('Publish to npm') { | ||
steps { | ||
withNodeJSEnv(version: "${env.NODE_VERSION}") { | ||
withNodeJSEnv(version: "${env.BUILD_NODE_VERSION}") { | ||
withNpmrc(secret: "${env.NPMRC_SECRET}", path: "${env.WORKSPACE}/${env.BASE_DIR}") { | ||
withTotpVault(secret: "${env.TOTP_SECRET}", code_var_name: 'TOTP_CODE') { | ||
dir("${BASE_DIR}") { | ||
|
@@ -383,7 +383,7 @@ pipeline { | |
environment { | ||
HOME = "${env.WORKSPACE}" | ||
RESULT_FILE = 'apm-agent-benchmark-results.json' | ||
NODE_VERSION = '14' | ||
BENCH_NODE_VERSION = '14' | ||
} | ||
when { | ||
beforeAgent true | ||
|
@@ -402,7 +402,7 @@ pipeline { | |
deleteDir() | ||
unstash 'source' | ||
dir(BASE_DIR){ | ||
sh '.ci/scripts/run-benchmarks.sh "${RESULT_FILE}" "${NODE_VERSION}"' | ||
sh '.ci/scripts/run-benchmarks.sh "${RESULT_FILE}" "${BENCH_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
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 @@ | ||
16.15.0 |
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.