Skip to content

Instantly share code, notes, and snippets.

View repeat's full-sized avatar
🐌
Busy hunting bugs.

Repeat Yang repeat

🐌
Busy hunting bugs.
View GitHub Profile
@lferro9000
lferro9000 / Jenkinsfile
Created July 30, 2017 09:59
Jenkinsfile with PHP pipeline for Jenkins 2
#!/usr/bin/env groovy
node('php') {
stage('Get code from SCM') {
checkout(
[$class: 'GitSCM', branches: [[name: '*/#your-dev-branch#']],
doGenerateSubmoduleConfigurations: false,
extensions: [],
submoduleCfg: [],
pipeline {
agent any
stages {
stage('Prepare') {
steps {
sh 'composer install'
sh 'rm -rf build/api'
sh 'rm -rf build/coverage'
sh 'rm -rf build/logs'