-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update lerna and minimum node versio
- Update to lerna 6 and set node 14 as minimum engine version eclipse-glsp/glsp#676 eclipse-glsp/glsp#676 - Update jenkins file to - ensure that we don't exhaust resource limits - enable error reporting when master builds fails eclipse-glsp/glsp#794
- Loading branch information
Showing
4 changed files
with
1,891 additions
and
1,700 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 |
---|---|---|
|
@@ -4,15 +4,15 @@ kind: Pod | |
spec: | ||
containers: | ||
- name: node | ||
image: node:12.22.9 | ||
image: node:14 | ||
tty: true | ||
resources: | ||
limits: | ||
memory: "4Gi" | ||
cpu: "2" | ||
memory: "2Gi" | ||
cpu: "1" | ||
requests: | ||
memory: "4Gi" | ||
cpu: "2" | ||
memory: "2Gi" | ||
cpu: "1" | ||
command: | ||
- cat | ||
volumeMounts: | ||
|
@@ -43,6 +43,7 @@ pipeline { | |
environment { | ||
YARN_CACHE_FOLDER = "${env.WORKSPACE}/yarn-cache" | ||
SPAWN_WRAP_SHIM_ROOT = "${env.WORKSPACE}" | ||
EMAIL_TO= "[email protected]" | ||
} | ||
|
||
stages { | ||
|
@@ -93,7 +94,7 @@ pipeline { | |
} | ||
} | ||
steps { | ||
build job: 'deploy-npm-glsp-server-node', wait: false | ||
build job: 'deploy-npm-glsp-server-node', wait: true | ||
} | ||
} | ||
} | ||
|
@@ -109,5 +110,35 @@ pipeline { | |
junit 'node_modules/**/report.xml' | ||
} | ||
} | ||
failure { | ||
script { | ||
if (env.BRANCH_NAME == 'master') { | ||
echo "Build result FAILURE: Send email notification to ${EMAIL_TO}" | ||
emailext attachLog: true, | ||
body: 'Job: ${JOB_NAME}<br>Build Number: ${BUILD_NUMBER}<br>Build URL: ${BUILD_URL}', | ||
mimeType: 'text/html', subject: 'Build ${JOB_NAME} (#${BUILD_NUMBER}) FAILURE', to: "${EMAIL_TO}" | ||
} | ||
} | ||
} | ||
unstable { | ||
script { | ||
if (env.BRANCH_NAME == 'master') { | ||
echo "Build result UNSTABLE: Send email notification to ${EMAIL_TO}" | ||
emailext attachLog: true, | ||
body: 'Job: ${JOB_NAME}<br>Build Number: ${BUILD_NUMBER}<br>Build URL: ${BUILD_URL}', | ||
mimeType: 'text/html', subject: 'Build ${JOB_NAME} (#${BUILD_NUMBER}) UNSTABLE', to: "${EMAIL_TO}" | ||
} | ||
} | ||
} | ||
fixed { | ||
script { | ||
if (env.BRANCH_NAME == 'master') { | ||
echo "Build back to normal: Send email notification to ${EMAIL_TO}" | ||
emailext attachLog: false, | ||
body: 'Job: ${JOB_NAME}<br>Build Number: ${BUILD_NUMBER}<br>Build URL: ${BUILD_URL}', | ||
mimeType: 'text/html', subject: 'Build ${JOB_NAME} back to normal (#${BUILD_NUMBER})', to: "${EMAIL_TO}" | ||
} | ||
} | ||
} | ||
} | ||
} |
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.