Skip to content
Snippets Groups Projects
Commit 8cc46562 authored by OZGCloud's avatar OZGCloud
Browse files

change pipeline

parent 1d46565b
Branches
Tags
No related merge requests found
...@@ -13,6 +13,7 @@ pipeline { ...@@ -13,6 +13,7 @@ pipeline {
stages { stages {
stage('client build') { stage('client build') {
steps { steps {
container("nodejs"){
sh 'npm --version' sh 'npm --version'
dir('goofy-client') { dir('goofy-client') {
sh 'npm install' sh 'npm install'
...@@ -21,6 +22,7 @@ pipeline { ...@@ -21,6 +22,7 @@ pipeline {
} }
} }
} }
}
stage('server build') { stage('server build') {
steps { steps {
...@@ -41,7 +43,7 @@ pipeline { ...@@ -41,7 +43,7 @@ pipeline {
openshift.withCluster() { openshift.withCluster() {
openshift.withProject() { openshift.withProject() {
dir('goofy-server') { dir('goofy-server') {
openshift.startBuild("goofy-builder", "--from-dir=.", "--follow") openshift.startBuild("goofy-builder", "--from-dir=.", "--follow", "--wait")
} }
openshift.tag("goofy-builder:latest", "goofy-builder:${env.BRANCH_NAME}-${version}") openshift.tag("goofy-builder:latest", "goofy-builder:${env.BRANCH_NAME}-${version}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment