diff --git a/Jenkinsfile b/Jenkinsfile index 1e6c33a068a8965c017fa16eed38b67821fb2cc8..b9aa6c85133d05e1f5989ba90c52ab7be1200eec 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,7 +8,7 @@ pipeline { } environment { - BLUE_OCEAN_URL = "https://jenkins.ozg-sh.de/job/kop-common/job/${env.BRANCH_NAME}/${env.BUILD_NUMBER}/" + BLUE_OCEAN_URL = "https://jenkins.ozg-sh.de/job/ozgcloud-common/job/${env.BRANCH_NAME}/${env.BUILD_NUMBER}/" RELEASE_REGEX = /\d+.\d+.\d+/ SNAPSHOT_REGEX = /\d+.\d+.\d+-SNAPSHOT/ } @@ -27,10 +27,10 @@ pipeline { def rootPom = readMavenPom file: 'pom.xml' def rootVersion = rootPom.version - def dependenciesPom = readMavenPom file: 'kop-common-dependencies/pom.xml' + def dependenciesPom = readMavenPom file: 'ozgcloud-common-dependencies/pom.xml' def dependenciesVersion = dependenciesPom.parent.version - def parentPom = readMavenPom file: 'kop-common-parent/pom.xml' + def parentPom = readMavenPom file: 'ozgcloud-common-parent/pom.xml' def parentVersion = parentPom.version if(env.BRANCH_NAME == 'release'){ @@ -49,12 +49,12 @@ pipeline { } } }*/ - stage('Build Kop-Common Dependencies') { + stage('Build OzgCloud-Common Dependencies') { steps { script { FAILED_STAGE=env.STAGE_NAME } - dir('kop-common-dependencies') { + dir('ozgcloud-common-dependencies') { configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) { sh 'mvn --version' sh 'mvn -s $MAVEN_SETTINGS clean install' @@ -64,7 +64,7 @@ pipeline { } - stage('Build Kop-Common') { + stage('Build OzgCloud-Common') { steps { script { FAILED_STAGE=env.STAGE_NAME @@ -74,7 +74,7 @@ pipeline { sh 'mvn -s $MAVEN_SETTINGS clean install' script { - dir('kop-common-lib') { + dir('ozgcloud-common-lib') { try { if (env.BRANCH_NAME == 'master') { withSonarQubeEnv('sonarqube-ozg-sh'){ @@ -90,7 +90,7 @@ pipeline { } } - stage('Deploy Kop-Common to Nexus'){ + stage('Deploy OzgCloud-Common to Nexus'){ when { anyOf { branch 'master' @@ -123,9 +123,9 @@ pipeline { Void sendFailureMessage() { def room = '' def data = """{"msgtype":"m.text", \ - "body":"kop-common: Build Failed. Stage: ${FAILED_STAGE} Build-ID: ${env.BUILD_NUMBER} Link: ${BLUE_OCEAN_URL}", \ + "body":"ozgcloud-common: Build Failed. Stage: ${FAILED_STAGE} Build-ID: ${env.BUILD_NUMBER} Link: ${BLUE_OCEAN_URL}", \ "format": "org.matrix.custom.html", \ - "formatted_body":"kop-common: Build Failed. Stage: ${FAILED_STAGE} Build-ID: <a href='${BLUE_OCEAN_URL}'>${env.BUILD_NUMBER}</a>"}""" + "formatted_body":"ozgcloud-common: Build Failed. Stage: ${FAILED_STAGE} Build-ID: <a href='${BLUE_OCEAN_URL}'>${env.BUILD_NUMBER}</a>"}""" if (env.BRANCH_NAME == 'master') { room = "!iQPAvQIiRwRpNOszjw:matrix.ozg-sh.de"