Advertisement
Oreborous

zoiets zou moeten werken

Feb 13th, 2019
439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.42 KB | None | 0 0
  1. pipeline {
  2.   agent any
  3.   stages {
  4.     if(env.BRANCH_NAME == 'master') {
  5.       stage('Checkout') {
  6.         steps {
  7.           dir(path: '/var/www/html/test') {
  8.             git(url: 'https://github.com/stevenliebregt/test-cd.git', branch: 'master', credentialsId: 'github')
  9.           }
  10.         }
  11.       }
  12.       stage('Composer install') {
  13.         steps {
  14.           sh 'composer install'
  15.         }
  16.       }
  17.     }
  18.   }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement