This file contains hidden or 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 config --global credential.helper '!aws codecommit credential-helper $@' | |
| git config --global credential.UseHttpPath true | 
  
    
      This file contains hidden or 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
    
  
  
    
  | $ kubectl create -f geolocus-namespace.json | |
| $ kubectl --namespace geolocus-ns create -f bs-quota.json | |
| $ kubectl --namespace geolocus-ns create -f bs-limits.json | |
| $ kubectl describe limits bs-limits --namespace geolocus-ns | 
  
    
      This file contains hidden or 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
    
  
  
    
  | { | |
| "kind": "LimitRange", | |
| "apiVersion": "v1", | |
| "metadata": { | |
| "name": "bs-limits" | |
| }, | |
| "spec":{ | |
| "limits":[ | |
| { | |
| "max":{"cpu":"1", "memory":"1Gi"}, | 
  
    
      This file contains hidden or 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
    
  
  
    
  | { | |
| "apiVersion": "v1", | |
| "kind": "ResourceQuota", | |
| "metadata": { | |
| "name": "bs-quota" | |
| }, | |
| "spec": { | |
| "hard": { | |
| "memory": "1Gi", | |
| "cpu": "1", | 
  
    
      This file contains hidden or 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
    
  
  
    
  | { | |
| "kind": "Namespace", | |
| "apiVersion": "v1", | |
| "metadata": { | |
| "name": "geolocus-ns" | |
| } | |
| } | 
  
    
      This file contains hidden or 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
    
  
  
    
  | package com.dh.ts.repo; | |
| import java.net.URI; | |
| import java.nio.charset.Charset; | |
| import org.apache.commons.codec.binary.Base64; | |
| import org.springframework.beans.factory.annotation.Value; | |
| import org.springframework.http.HttpEntity; | |
| import org.springframework.http.HttpHeaders; | |
| import org.springframework.http.HttpMethod; | 
  
    
      This file contains hidden or 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
    
  
  
    
  | node{ | |
| docker.image('buildpack-deps:jessie-scm').inside { | |
| sh "echo 'hello' >> a.txt" | |
| stash includes: 'a.txt', name: 'pom' | |
| } | |
| docker.image('buildpack-deps:jessie-scm').inside { | |
| unstash 'pom' | |
| sh "cat a.txt" | |
| } | 
  
    
      This file contains hidden or 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
    
  
  
    
  | { | |
| "kind": "ReplicationController", | |
| "apiVersion": "v1", | |
| "metadata": { | |
| "name": "claims-web-controller", | |
| "labels": { | |
| "state": "serving" | |
| } | |
| }, | 
  
    
      This file contains hidden or 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
    
  
  
    
  | stage 'Dev' | |
| node { | |
| git url: 'https://github.com/jglick/simple-maven-project-with-tests.git' | |
| mvn 'clean package' | |
| } | |
| def mvn(args) { | |
| sh "${tool 'M3'}/bin/mvn ${args}" | |
| } | 
  
    
      This file contains hidden or 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
    
  
  
    
  | RestTemplate restTemplate = new RestTemplate(); | |
| try { | |
| ResponseEntity<List<Claim>> claimResponse = restTemplate.exchange( | |
| uri, | |
| HttpMethod.GET, | |
| null, | |
| new ParameterizedTypeReference<List<Claim>>() {}); | |
| if(claimResponse != null && claimResponse.hasBody()){ | |
| claims = claimResponse.getBody(); |