Skip to content

Commit

Permalink
fix jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mickaelchanrion committed Sep 9, 2019
1 parent b7a9b9f commit 3d2741d
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions Jenkinsfile
Expand Up @@ -40,16 +40,19 @@ pipeline {

stage('Build') {
steps {
sh "clever env -a $DEPLOY_APP > .env"
sh "cd frontend"
sh "npm ci"
sh "npm run build"
dir("frontend") {
sh "clever env -a $DEPLOY_APP > .env"
sh "npm ci"
sh "npm run build"
}
}
}

stage('Run') {
steps {
sh "npm start &"
dir("frontend") {
sh "npm start &"
}
}
}

Expand Down Expand Up @@ -85,9 +88,11 @@ pipeline {

steps {
script {
echo("Deploying to $DEPLOY_APP")
sh "clever deploy -a $DEPLOY_APP -f"
echo("Project available on $DEPLOY_APP")
dir("frontend") {
echo("Deploying to $DEPLOY_APP")
sh "clever deploy -a $DEPLOY_APP -f"
echo("Project available on $DEPLOY_APP")
}
}
}
}
Expand Down

0 comments on commit 3d2741d

Please sign in to comment.