-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/6.2.0' into main
- Loading branch information
Showing
811 changed files
with
14,202 additions
and
13,866 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
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 |
---|---|---|
|
@@ -240,4 +240,5 @@ $RECYCLE.BIN/ | |
junit.xml | ||
yarn.lock | ||
eslint_report.json | ||
.scannerwork | ||
.scannerwork | ||
releases |
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 |
---|---|---|
@@ -1,2 +1,20 @@ | ||
/* | ||
Copyright 2020-2021 University of Oxford | ||
and Health and Social Care Information Centre, also known as NHS Digital | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
|
||
SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
registry=https://registry.npmjs.org | ||
@maurodatamapper:registry=https://npm.pkg.github.com |
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 |
---|---|---|
@@ -1,95 +1,114 @@ | ||
pipeline { | ||
agent any | ||
options { | ||
timestamps() | ||
skipStagesAfterUnstable() | ||
buildDiscarder(logRotator(numToKeepStr: '30')) | ||
} | ||
/* | ||
nvm wrapper has to wrap all steps, interestingly its not supposed to work with the .nvmrc file however if you exclude the version as a blank string | ||
then it passes the blank string as the version and therefore nvm just does its job and uses the .nvmrc file. | ||
*/ | ||
stages { | ||
stage('Tool Versions') { | ||
steps { | ||
nvm('') { | ||
// Currently npm v6 is packaged with node and we need v7+ | ||
sh 'npm install -g npm@^7.10.0' | ||
sh 'node --version' | ||
sh 'npm --version' | ||
} | ||
} | ||
agent any | ||
options { | ||
timestamps() | ||
skipStagesAfterUnstable() | ||
buildDiscarder(logRotator(numToKeepStr: '30')) | ||
} | ||
/* | ||
nvm wrapper has to wrap all steps, interestingly its not supposed to work with the .nvmrc file however if you exclude the version as a blank | ||
string | ||
then it passes the blank string as the version and therefore nvm just does its job and uses the .nvmrc file. | ||
*/ | ||
stages { | ||
stage('Tool Versions') { | ||
steps { | ||
nvm('') { | ||
// Currently npm v6 is packaged with node and we need v7+ | ||
sh 'npm install -g npm@^7.10.0' | ||
sh 'node --version' | ||
sh 'npm --version' | ||
} | ||
} | ||
stage('Jenkins Clean') { | ||
steps { | ||
sh 'rm -f junit.xml' | ||
sh 'rm -rf test-report' | ||
sh 'rm -rf coverage' | ||
sh 'rm -f eslint_report.json' | ||
} | ||
} | ||
stage('Jenkins Clean') { | ||
steps { | ||
sh 'rm -f junit.xml' | ||
sh 'rm -rf test-report' | ||
sh 'rm -rf coverage' | ||
sh 'rm -f eslint_report.json' | ||
} | ||
stage('Install') { | ||
steps { | ||
nvm('') { | ||
sh 'npm install -g npm-check' | ||
sh 'npm install -g @angular/cli' | ||
sh 'npm ci' | ||
} | ||
} | ||
} | ||
|
||
stage('Install') { | ||
steps { | ||
nvm('') { | ||
sh 'npm install -g npm-check' | ||
sh 'npm install -g @angular/cli' | ||
sh 'npm ci' | ||
} | ||
} | ||
stage('Test') { | ||
steps { | ||
nvm('') { | ||
catchError(buildResult: 'UNSTABLE', stageResult: 'UNSTABLE') { | ||
sh 'npm run test-with-coverage' | ||
} | ||
} | ||
} | ||
post { | ||
always { | ||
junit allowEmptyResults: true, testResults: 'junit.xml' | ||
} | ||
} | ||
} | ||
|
||
stage('License Header Check') { | ||
steps { | ||
warnError('Missing License Headers') { | ||
nvm('') { | ||
sh 'npm run license-check check' | ||
} | ||
} | ||
} | ||
stage('Lint') { | ||
steps { | ||
nvm('') { | ||
catchError(buildResult: 'UNSTABLE', stageResult: 'UNSTABLE') { | ||
sh 'npm run eslint-report' | ||
} | ||
} | ||
} | ||
} | ||
|
||
stage('Test') { | ||
steps { | ||
nvm('') { | ||
catchError(buildResult: 'UNSTABLE', stageResult: 'UNSTABLE') { | ||
sh 'npm run test-with-coverage' | ||
sh 'npm run test-clean' | ||
} | ||
} | ||
} | ||
post { | ||
always { | ||
junit allowEmptyResults: true, testResults: 'junit.xml' | ||
} | ||
} | ||
} | ||
stage('Lint') { | ||
steps { | ||
nvm('') { | ||
catchError(buildResult: 'UNSTABLE', stageResult: 'UNSTABLE') { | ||
sh 'npm run eslint-report' | ||
} | ||
} | ||
} | ||
post{ | ||
always{ | ||
recordIssues tools: [esLint(pattern: '**/eslint_report.xml')] | ||
} | ||
} | ||
} | ||
|
||
stage('Sonarqube') { | ||
when { | ||
branch 'develop' | ||
} | ||
steps { | ||
withSonarQubeEnv('JenkinsQube') { | ||
nvm('') { | ||
catchError(buildResult: 'UNSTABLE', stageResult: 'UNSTABLE') { | ||
sh 'npm run sonar' | ||
} | ||
} | ||
} | ||
} | ||
stage('Sonarqube') { | ||
when { | ||
branch 'develop' | ||
} | ||
} | ||
post { | ||
always { | ||
publishHTML([ | ||
allowMissing : true, | ||
alwaysLinkToLastBuild: true, | ||
keepAll : false, | ||
reportDir : 'test-report', | ||
reportFiles : 'index.html', | ||
reportName : 'Test Report', | ||
reportTitles : 'Test' | ||
]) | ||
outputTestResults() | ||
slackNotification() | ||
zulipNotification(topic: 'mdm-ui') | ||
steps { | ||
withSonarQubeEnv('JenkinsQube') { | ||
nvm('') { | ||
catchError(buildResult: 'UNSTABLE', stageResult: 'UNSTABLE') { | ||
sh 'npm run sonar' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
post { | ||
always { | ||
publishHTML([ | ||
allowMissing : true, | ||
alwaysLinkToLastBuild: true, | ||
keepAll : false, | ||
reportDir : 'test-report', | ||
reportFiles : 'index.html', | ||
reportName : 'Test Report', | ||
reportTitles : 'Test' | ||
]) | ||
outputTestResults() | ||
slackNotification() | ||
zulipNotification(topic: 'mdm-ui') | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -39,7 +39,7 @@ | |
], | ||
"stylePreprocessorOptions": { | ||
"includePaths": [ | ||
"src/styles", | ||
"src/style", | ||
"src/app" | ||
] | ||
} | ||
|
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
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.