CI update
This commit is contained in:
parent
28feacc7ef
commit
38f550542a
|
@ -27,35 +27,35 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('SonarQube analysis') {
|
//stage('SonarQube analysis') {
|
||||||
steps {
|
// steps {
|
||||||
script {
|
// script {
|
||||||
def scannerHome = tool 'SonarQube Scanner 4.3';
|
// def scannerHome = tool 'SonarQube Scanner 4.3';
|
||||||
withSonarQubeEnv('SonarQube') { // If you have configured more than one global server connection, you can specify its name
|
// withSonarQubeEnv('SonarQube') { // If you have configured more than one global server connection, you can specify its name
|
||||||
sh "${scannerHome}/bin/sonar-scanner"
|
// sh "${scannerHome}/bin/sonar-scanner"
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
// waiting for sonar results based into the configured web hook in Sonar server which push the status back to jenkins
|
//// waiting for sonar results based into the configured web hook in Sonar server which push the status back to jenkins
|
||||||
stage('SonarQube scan result check') {
|
//stage('SonarQube scan result check') {
|
||||||
steps {
|
// steps {
|
||||||
timeout(time: 2, unit: 'MINUTES') {
|
// timeout(time: 2, unit: 'MINUTES') {
|
||||||
retry(3) {
|
// retry(3) {
|
||||||
script {
|
// script {
|
||||||
def qg = waitForQualityGate()
|
// def qg = waitForQualityGate()
|
||||||
if (qg.status != 'OK') {
|
// if (qg.status != 'OK') {
|
||||||
error "Pipeline aborted due to quality gate failure: ${qg.status}"
|
// error "Pipeline aborted due to quality gate failure: ${qg.status}"
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
stage('Pushing to Docker Registry') {
|
stage('Pushing to Docker Registry') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
docker.withRegistry('https://registry.home-server', '1e8e4c8e-c709-4475-ab14-8d079a36914a') {
|
docker.withRegistry('http://drepo.local.cite.gr', 'b2c651c1-9a3b-4a98-a6da-e1dd7a20f512') {
|
||||||
pipelineContext.apiImage.push()
|
pipelineContext.apiImage.push()
|
||||||
pipelineContext.webappImage.push()
|
pipelineContext.webappImage.push()
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
"emitDecoratorMetadata": true,
|
"emitDecoratorMetadata": true,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"importHelpers": true,
|
"importHelpers": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
"target": "es2015",
|
"target": "es2015",
|
||||||
"typeRoots": [
|
"typeRoots": [
|
||||||
"node_modules/@types"
|
"node_modules/@types"
|
||||||
|
|
Loading…
Reference in New Issue