Skip to content

Commit

Permalink
Merge pull request LondheShubham153#10 from LondheShubham153/feature-…
Browse files Browse the repository at this point in the history
…jenkins-integration

Feature jenkins integration
  • Loading branch information
LondheShubham153 authored Jan 22, 2023
2 parents 02ccd0e + 27d903c commit 5153c15
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
pipeline {
agent any
agent label {'node-agent'}

stages{
stage('Code'){
steps{
git url: 'https://github.com/LondheShubham153/node-todo-cicd.git', branch: 'master'
}
}
stage('Build'){
stage('Build and Test'){
steps{
sh 'docker build . -t trainwithshubham/node-todo-test:latest'
}
Expand All @@ -20,11 +20,6 @@ pipeline {
}
}
}
stage('Test'){
steps{
echo "Testing the new build .."
}
}
stage('Deploy'){
steps{
sh "docker-compose down && docker-compose up -d"
Expand Down

0 comments on commit 5153c15

Please sign in to comment.