Unverified Commit a786a6b8 authored by Divyansh's avatar Divyansh Committed by GitHub
Browse files

Create jenk

1 merge request!12837Create jenk
Showing with 17 additions and 0 deletions
+17 -0
jenk 0 → 100644
pipeline {
agent any
stages {
stage("Build") {
steps {
sh "sudo npm install"
sh "sudo npm run build"
}
}
stage("Deploy") {
steps {
sh "sudo rm -rf /var/www/jenkins-react-app"
sh "sudo cp -r ${WORKSPACE}/build/ /var/www/jenkins-react-app/"
}
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment