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
/** | |
* Jenkins Job DSL Groovy Script showing how to write & read files to Jenkins Workspace | |
*/ | |
import groovy.json.JsonSlurper | |
import groovy.json.JsonBuilder | |
import groovy.json.JsonOutput | |
import hudson.FilePath | |
import hudson.* | |
def projects = [] |
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
/** | |
* Jenkins Job DSL configure block for Confluence Publisher | |
* Open Feature Request, see https://issues.jenkins-ci.org/browse/JENKINS-31786 | |
* | |
* siteName = Link to your Confluence Installation | |
* spaceName = Confluence Space | |
* pageName = Confluence Page Name | |
* | |
*/ | |
job('confluence-publisher-job') { |
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-machine env default | |
export DOCKER_TLS_VERIFY="1" | |
export DOCKER_HOST="tcp://192.168.99.100:2376" | |
export DOCKER_CERT_PATH="/Users/marcelbirkner/.docker/machine/machines/default" | |
export DOCKER_MACHINE_NAME="default" | |
# Run this command to configure your shell: | |
# eval "$(docker-machine env default)" | |
~$ eval "$(docker-machine env default)" |
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-machine start default |
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-machine ls | |
NAME ACTIVE DRIVER STATE URL SWARM | |
default virtualbox Stopped | |
~$ docker-machine stop default |
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
nexus: | |
build: ./nexus | |
ports: | |
- "18081:8081" | |
jenkins: | |
build: ./jenkins | |
ports: | |
- "18080:8080" | |
links: |
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 clone [email protected]:marcelbirkner/docker-ci-tool-stack.git | |
cd docker-ci-tool-stack | |
docker-compose up |
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/sh | |
git clone [email protected]:marcelbirkner/docker-jenkins-job-dsl.git | |
cd docker-jenkins-job-dsl | |
docker build -t docker-jenkins-job-dsl . | |
docker run -p=8080:8080 docker-jenkins-job-dsl |
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
import groovy.sql.Sql | |
// MySQL DB Settings | |
def dbSchema = ‘schema’ | |
def dbServer = ‘mysqlserver’ | |
def dbUser = ‘user’ | |
def dbPassword = 'password' | |
def dbDriver = 'com.mysql.jdbc.Driver' | |
def dbUrl = 'jdbc:mysql:@' + dbServer + ':' + dbSchema | |
sql = Sql.newInstance( dbUrl, dbUser, dbPassword, dbDriver ) |
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
import groovy.sql.Sql | |
// Oracle DB Settings | |
def dbSchema = ‘schema’ | |
def dbServer = ‘oracleserver’ | |
def dbUser = ‘user’ | |
def dbPassword = 'password' | |
def dbDriver = 'oracle.jdbc.driver.OracleDriver' | |
def dbUrl = 'jdbc:oracle:thin:@' + dbServer + ':' + dbSchema | |
sql = Sql.newInstance( dbUrl, dbUser, dbPassword, dbDriver ) |