Skip to content
Snippets Groups Projects
Commit 139c2abc authored by OZGCloud's avatar OZGCloud
Browse files

Merge pull request 'ozg-7032 jenkins use withnpm' (#818) from...

Merge pull request 'ozg-7032 jenkins use withnpm' (#818) from ozg-7032-jenkins-npm-credential into master

Reviewed-on: https://git.ozg-sh.de/ozgcloud-app/alfa/pulls/818


Reviewed-by: default avatarOZGCloud <ozgcloud@mgm-tp.com>
parents 8477b2c2 e6ab47e1
No related branches found
No related tags found
No related merge requests found
......@@ -53,12 +53,11 @@ pipeline {
script {
FAILED_STAGE=env.STAGE_NAME
withNPM(npmrcConfig: 'npm-nexus-auth') {
sh 'npm --version'
sh 'node --version'
dir('alfa-client') {
sh 'echo "registry=https://nexus.ozg-sh.de/repository/npm-proxy" >> ~/.npmrc'
sh 'echo "//nexus.ozg-sh.de/:_auth=amVua2luczprTSFnNVUhMVQzNDZxWQ==" >> ~/.npmrc'
dir('alfa-client') {
sh 'npm cache verify'
sh 'npm install'
......@@ -78,6 +77,7 @@ pipeline {
}
}
}
}
// post {
// always{
// junit testResults: 'alfa-client/test-report.xml', skipPublishingChecks: true
......@@ -92,7 +92,9 @@ pipeline {
dir('alfa-client') {
IMAGE_TAG = generateImageTag()
withNPM(npmrcConfig: 'npm-nexus-auth') {
sh 'npm run ci-build-alfa-client-container'
}
withCredentials([usernamePassword(credentialsId: 'jenkins-nexus-login', usernameVariable: 'USER', passwordVariable: 'PASSWORD')]) {
sh 'docker login docker.ozg-sh.de -u ${USER} -p ${PASSWORD}'
......
......@@ -36,10 +36,8 @@ pipeline {
script {
FAILED_STAGE=env.STAGE_NAME
withNPM(npmrcConfig: 'npm-nexus-auth') {
dir('alfa-client') {
sh 'echo "registry=https://nexus.ozg-sh.de/repository/npm-proxy" >> ~/.npmrc'
sh 'echo "//nexus.ozg-sh.de/:_auth=amVua2luczprTSFnNVUhMVQzNDZxWQ==" >> ~/.npmrc'
sh 'npm cache verify'
sh 'npm install'
......@@ -59,6 +57,7 @@ pipeline {
}
}
}
}
stage('Tag and Push Docker image') {
steps {
......
......@@ -199,11 +199,9 @@ pipeline {
script {
FAILED_STAGE = env.STAGE_NAME
withNPM(npmrcConfig: 'npm-nexus-auth') {
sh 'npm --version'
dir('alfa-client') {
sh 'echo "registry=https://nexus.ozg-sh.de/repository/npm-proxy" >> ~/.npmrc'
sh 'echo "//nexus.ozg-sh.de/:_auth=amVua2luczprTSFnNVUhMVQzNDZxWQ==" >> ~/.npmrc'
sh 'npm cache verify'
sh 'npm install'
sh "npm run cypress:install"
......@@ -211,6 +209,7 @@ pipeline {
}
}
}
}
stage('Wait for Rollout E2E Namespaces') {
when {
......
......@@ -149,11 +149,9 @@ pipeline {
script {
FAILED_STAGE = env.STAGE_NAME
withNPM(npmrcConfig: 'npm-nexus-auth') {
sh 'npm --version'
dir('alfa-client') {
sh 'echo "registry=https://nexus.ozg-sh.de/repository/npm-proxy" >> ~/.npmrc'
sh 'echo "//nexus.ozg-sh.de/:_auth=amVua2luczprTSFnNVUhMVQzNDZxWQ==" >> ~/.npmrc'
sh 'npm cache verify'
sh 'npm install'
sh "npm run cypress:install"
......@@ -161,6 +159,7 @@ pipeline {
}
}
}
}
stage('Init k8s') {
when {
......
......@@ -37,19 +37,13 @@ pipeline {
script {
FAILED_STAGE=env.STAGE_NAME
withNPM(npmrcConfig: 'npm-nexus-auth') {
dir('alfa-client') {
withNPM(npmrcConfig: 'a4272a20-bb67-4cf7-8ce5-a1c3ac66613c') {
sh 'npm cache verify'
sh 'npm install'
sh 'npm run ci-storybook'
}
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment