diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..c70703b --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,23 @@ +#!/usr/bin/env groovy + +def label = "is-jenkins-${UUID.randomUUID().toString()}" + +podTemplate(name: label, label: label, nodeSelector: 'function=docker_workers', containers: [ + containerTemplate(name: 'docker', image: 'docker:stable-dind', ttyEnabled: true, command: 'cat'), +], volumes: [hostPathVolume(hostPath: '/var/run/docker.sock', mountPath: '/var/run/docker.sock')]) { + + node(label) { + ansiColor('xterm') { + + stage('Clean Docker Image') { + container('docker') { + sh""" + echo "y"|docker system prune -a + """ + } + } + stage('Clean Docker Image') { + build job: 'test-param-trigger', parameters: [string(name: 'BRANCH', value: env.BRANCH_NAME), string(name: 'ENVIRONMENT', value: 'STAGE'), string(name: 'SLACK_ROOM', value: 'cx-eng')] + } + } +} diff --git a/LICENSE b/LICENSE index 8dada3e..4b5234f 100644 --- a/LICENSE +++ b/LICENSE @@ -11,6 +11,7 @@ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common diff --git a/README.md b/README.md index 8d1861f..46163f5 100644 --- a/README.md +++ b/README.md @@ -3,14 +3,13 @@ # orders A microservices-demo service that provides ordering capabilities. - This build is built, tested and released by travis. # API Spec - Checkout the API Spec [here](http://microservices-demo.github.io/api/index?url=https://raw.githubusercontent.com/microservices-demo/orders/master/api-spec/orders.json) # Build +test ## Jar `mvn -DskipTests package` @@ -28,4 +27,4 @@ Checkout the API Spec [here](http://microservices-demo.github.io/api/index?url=h `curl http://localhost:8082` # Push -`GROUP=weaveworksdemos COMMIT=test ./scripts/push.sh` +`GROUP=weaveworksdemos COMMIT=test ./scripts/push.sh