Skip to content

Instantly share code, notes, and snippets.

@rafaelaugustos
Created May 5, 2020 21:01
Show Gist options
  • Save rafaelaugustos/2b5025ca546818926cfe5a06e6c962c3 to your computer and use it in GitHub Desktop.
Save rafaelaugustos/2b5025ca546818926cfe5a06e6c962c3 to your computer and use it in GitHub Desktop.
node {
def app_name = "frontend-to-jenkins"
def git_url = "git@github.com:RafaelAugustoS/frontend-to-jenkins.git"
stage('Clone Repository'){
git branch: 'master',
credentialsId: 'jenkins',
url: git_url
}
stage('Build'){
sh "cd .. && cp -r ${app_name}/* /var/www/html"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment