Skip to content

Commit

Permalink
Update JenkinsfileCD
Browse files Browse the repository at this point in the history
  • Loading branch information
opswithranjan authored Nov 24, 2022
1 parent 7f69f3a commit 3bc5dce
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions JenkinsfileCD
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
pipeline {
agent slave1
agent {
label 'slave1'
}
stages {
stage("Deploy") {
steps {
sh "sudo rm -r /var/www/html/frontend/*"
sh "sudo mv /home/jenkins/workspace/Frontend/build/* /var/www/html/frontend"
sh "rm -r /var/www/html/frontend/*"
sh "mv /home/jenkins/workspace/Frontend/build/* /var/www/html/frontend"
}
}
}
Expand Down

0 comments on commit 3bc5dce

Please sign in to comment.