blob: bc7c73e37dc5d91c8c940c68a49434220a8562dd [file] [log] [blame]
pipeline {
agent any
stages {
stage('portalFE') {
steps {
dir("portalFE") {
git branch: 'master', url: 'https://git.eclipse.org/r/openk-coremodules/org.eclipse.openk-coremodules.portalFE.git'
sh 'npm install'
sh 'npm run build'
}
}
}
stage('Backend') {
steps {
dir("AuthAndAuth") {
git branch: 'master', url: 'https://git.eclipse.org/r/openk-coremodules/org.eclipse.openk-coremodules.authandauth.git'
sh 'mvn clean package'
}
}
}
stage('Deploy') {
steps {
dir("AuthAndAuth") {
sh 'docker stop portal_container || true'
sh 'docker rm portal_container || true'
sh 'docker rmi portal:MASTER || true'
sh 'docker build -f Dockerfile -t portal:MASTER --no-cache .'
sh "docker run -d --name portal_container -p 8888:8080 --restart always portal:MASTER"
}
}
}
}
}