This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Badass Makefile | |
Badass makefile template ready to use. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Just edited Jenkinsfile dealing with some deploy when merging on master | |
git add Jenkinsfile lib/jenkins/Servers.groovy # git add | |
git commit -m "WIP build pipeline" # git commit | |
git push origin master --force # previously rebased 50 "WIP build pipeline" in git history | |
# push force on master, yolo | |
# Wait for the build to be triggered | |
# ⌘ + Tab | |
# 3 clicks on Jenkins to get the build output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker exec -i jenkins_jenkins_1 bash -c ' \ | |
cd /application/vendor/jenkins && \ | |
wget http://localhost:8080/jnlpJars/jenkins-cli.jar \ | |
' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git add . | |
git commit -m "WIP build pipeline" | |
git push origin master | |
# Wait the build to be triggered | |
# ⌘ + Tab | |
# Wait for the build to end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker exec -i jenkins_jenkins_1 bash -c ' \ | |
java -jar /application/vendor/jenkins/jenkins-cli.jar -s http://localhost:8080 \ | |
replay-pipeline cd/master \ | |
-s Jenkinsfile < /application/demo/repo/Jenkinsfile \ | |
-s demo.Servers < /application/demo/lib/src/demo/Servers.groovy \ | |
' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use your docker instance to run the commands below | |
docker exec -i jenkins_jenkins_1 bash -c | |
# Run locally (in the container, Jenkins runs on 8080) Jenkins CLI | |
# on your running instance | |
java -jar /application/vendor/jenkins/jenkins-cli.jar -s http://localhost:8080 | |
# Run the command `replay-pipeline` on the cd item and master branch | |
replay-pipeline cd/master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copy/paste it in the build pipeline you'll be creating | |
// Pipeline syntax: https://jenkins.io/doc/book/pipeline/syntax/ | |
// Docker pipeline plugin docs: https://go.cloudbees.com/docs/cloudbees-documentation/cje-user-guide/index.html#docker-workflow | |
pipeline { | |
agent { docker 'php:7.1-alpine' } | |
stages { | |
stage('Build PHP 7.1') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Comment available here: http://disq.us/p/1lek1yc | |
* | |
* Notification collection consumer point of view. | |
*/ | |
$notifications = Notifications::make() | |
->add($this->buildParentCreatorNotification($comment)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# TODO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Super\Duper\Namespace; | |
use Bread\Namespace; | |
use Corn\Namespace; | |
use Entity\Namespace; | |
class DoctrineRepository extends EntityRepository |
OlderNewer