Skip to content

Commit

Permalink
Update lerna and minimum node version
Browse files Browse the repository at this point in the history
- Update to lerna 6 and set node 14 as minimum engine version 
eclipse-glsp/glsp#676
eclipse-glsp/glsp#680
- 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
tortmayr committed Dec 5, 2022
1 parent 151c3c1 commit 1765eb1
Show file tree
Hide file tree
Showing 3 changed files with 1,776 additions and 1,554 deletions.
33 changes: 32 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ pipeline {
environment {
YARN_CACHE_FOLDER = "${env.WORKSPACE}/yarn-cache"
SPAWN_WRAP_SHIM_ROOT = "${env.WORKSPACE}"
EMAIL_TO= "[email protected]"
}

stages {
Expand Down Expand Up @@ -78,7 +79,7 @@ pipeline {
}
}
steps {
build job: 'deploy-npm-glsp-vscode-integration', wait: false
build job: 'deploy-npm-glsp-vscode-integration', wait: true
}
}
}
Expand All @@ -90,5 +91,35 @@ pipeline {
tools: [esLint(pattern: 'node_modules/**/*/eslint.xml')],
qualityGates: [[threshold: 1, type: 'TOTAL', unstable: true]]
}
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}"
}
}
}
}
}
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"private": true,
"engines": {
"yarn": ">=1.7.0 <2.x.x"
"yarn": ">=1.7.0 <2.x.x",
"node": ">=14.18.0"
},
"scripts": {
"prepare": "lerna run prepare",
Expand All @@ -16,12 +17,13 @@
"build:ci": "lerna run build:ci"
},
"devDependencies": {
"@eclipse-glsp/config": "^1.0.0",
"@eclipse-glsp/config": "1.1.0-next.d03ad9f.112",
"@types/vscode": "^1.54.0",
"lerna": "^4.0.0",
"@types/node": "14",
"lerna": "^6.1.0",
"mvn-artifact-download": "5.1.0",
"rimraf": "^2.6.3",
"typescript": "^4.4.5"
"typescript": "^4.9.3"
},
"resolutions": {
"**/sprotty": "0.13.0-next.1c4343c.328"
Expand Down
Loading

0 comments on commit 1765eb1

Please sign in to comment.