@@ -1,5 +1,8 @@
pipeline {
agent any
+ environment {
+ BRANCH_NAME="${env.BRANCH_NAME}".toLowerCase()
+ }
stages {
stage('Build') {
agent {
@@ -19,11 +22,10 @@ pipeline {
}
stage('Deploy') {
- environment {
- BRANCH_NAME="${env.BRANCH_NAME}".toLowerCase()
- }
steps {
echo 'Deploying....'
+ sh 'sh pwd'
+ sh 'sh ls -la'
sh 'docker build -t ${BRANCH_NAME}:${BUILD_NUMBER} .'
sh 'docker-compose up -d'