Skip to content

Instantly share code, notes, and snippets.

View kevinearls's full-sized avatar

Kevin Earls kevinearls

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>tranql</groupId>
<artifactId>tranql-connector</artifactId>
<version>1.2</version>
<description>POM was created from install:install-file</description>
</project>
//The global script scope
def ctx = context(scope: scriptScope())
contributor(ctx) {
method(name: 'build', type: 'Object', params: [job:'java.lang.String'], doc: 'Build a job')
method(name: 'build', type: 'Object', namedParams: [parameter(name: 'job', type: 'java.lang.String'), parameter(name: 'parameters', type: 'Map'), parameter(name: 'propagate', type: 'boolean'), parameter(name: 'quietPeriod', type: 'java.lang.Integer'), parameter(name: 'wait', type: 'boolean'), ], doc: 'Build a job')
method(name: 'echo', type: 'Object', params: [message:'java.lang.String'], doc: 'Print Message')
method(name: 'error', type: 'Object', params: [message:'java.lang.String'], doc: 'Error signal')
method(name: 'input', type: 'Object', params: [message:'java.lang.String'], doc: 'Wait for interactive input')
method(name: 'input', type: 'Object', namedParams: [parameter(name: 'message', type: 'java.lang.String'), parameter(name: 'id', type: 'java.lang.String'), parameter(name: 'ok', type: 'java.lang.String'), parameter(name: 'par
Here are the steps I took to install Istio on Openshift. I started with the steps in this article https://blog.openshift.com/running-istio-service-mesh-openshift/ and then corrected a couple of errors.
There are optional stops for deploying Jaeger instead of Zipkin, but as of this writing I have not been able to figure out how to tell Istio to change the zipkin collector URL to use the jaeger collector URL instead. (NOTE: It should be possible to do this directly in Enovy by setting "collector_endpoint", but I haven't been able to determine if there is someway to get the istio tools to configure this. See https://github.com/lyft/envoy/blob/998b8119ed57269e77d0a03b1b92e7a98c5d30d1/source/common/tracing/zipkin/zipkin_tracer_impl.cc#L51-L52)
### Setup
### Checkout istio sources
git clone https://github.com/istio/istio
cd istio
git checkout 0.1.6 # NOT 0.1.5 like he says in the blog
cd ..
pipeline {
agent any
options {
disableConcurrentBuilds()
timeout(time: 1, unit: 'HOURS')
}
environment {
JAEGER_QUERY_HOST="jaeger-query"
JAEGER_AGENT_HOST="jaeger-agent"
apiVersion: v1
kind: DeploymentConfig
metadata:
annotations:
fabric8.io/git-branch: SWS-86
fabric8.io/git-commit: 1d373f6eec76fdad7a3d7b902b240ae21566f57e
fabric8.io/metrics-path: dashboard/file/kubernetes-pods.json/?var-project=jaeger-standalone-performance-tests&var-version=1.1
creationTimestamp: 2018-02-16T14:44:50Z
generation: 2
labels:
apiVersion: v1
kind: DeploymentConfig
metadata:
annotations:
fabric8.io/git-branch: SWS-86
fabric8.io/git-commit: 1d373f6eec76fdad7a3d7b902b240ae21566f57e
fabric8.io/metrics-path: dashboard/file/kubernetes-pods.json/?var-project=jaeger-standalone-performance-tests&var-version=1.1
creationTimestamp: 2018-02-16T15:13:47Z
generation: 2
labels:
pipeline {
agent any
options {
disableConcurrentBuilds()
/*timeout(time: 8, unit: 'HOURS')*/
}
environment {
JAEGER_AGENT_HOST = "localhost"
JAEGER_COLLECTOR_HOST = "jaeger-collector"
JAEGER_COLLECTOR_PORT = 14268
<testsuite tests="4" failures="0" name="com.kevinearls.adventofcode.bridge.BridgeTest" time="5.418" errors="0" skipped="0">
<properties>
<property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>
<property name="java.vm.version" value="9.0.4+11"/>
<property name="sun.boot.library.path" value="/home/jenkins/tools/hudson.model.JDK/jdk9/lib"/>
<property name="maven.multiModuleProjectDirectory" value="/home/jenkins/workspace/kearls-aoc-test"/>
<property name="java.vm.vendor" value="Oracle Corporation"/>
<property name="java.vendor.url" value="http://java.oracle.com/"/>
<property name="path.separator" value=":"/>
<property name="guice.disable.misplaced.annotation.check" value="true"/>
package main
import (
"encoding/xml"
"fmt"
"io/ioutil"
"os"
"strconv"
"strings"
)
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite tests="8" failures="0" time="138.963" name="github.com/jaegertracing/jaeger-operator/test/e2e">
<properties>
<property name="go.version" value="go1.11"/>
</properties>
<testcase classname="e2e" name="TestAllInOneSuite" time="64.520"/>
<testcase classname="e2e" name="TestAllInOneSuite/TestAllInOne" time="10.130"/>
<testcase classname="e2e" name="TestAllInOneSuite/TestAllInOneWithIngress" time="20.360"/>
<testcase classname="e2e" name="TestAllInOneSuite/TestAllInOneWithUIConfig" time="20.320"/>