Skip to content

Instantly share code, notes, and snippets.

View garethahealy's full-sized avatar

Gareth Healy garethahealy

View GitHub Profile
def echoAndStash(index, openshiftMap) {
echo "$index == $openshiftMap"
openshiftMap.each { project ->
sh """
echo "hello${project}" >> batch${index}.tmp
"""
}
def batchName = "batch${index}"
@garethahealy
garethahealy / isRolloutRequired.groovy
Created August 20, 2018 10:35
openshift deployment via jenkins groovy lib
def progressingCondition = dcObject?.status?.conditions.find { condition -> condition.type == "Progressing" }
if (progressingCondition == null) {
//maybe this is because there isnt an active dc?
return false
}
if (progressingCondition.status == "Unknown") {
//Deployment already in-progress due to oc apply - deployer pod not ready yet
isRolloutRequired = false
} else if (progressingCondition.status == "True" && progressingCondition.reason == "ReplicationControllerUpdated") {
@garethahealy
garethahealy / paxexm-karaf2.log
Created February 26, 2018 11:02
dozer karaf2 failure
[INFO] ------------------------------------------------------------------------
[INFO] Building Dozer :: Tests :: OSGi Bundle Tests 6.2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ dozer-osgi-tests ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-maven) @ dozer-osgi-tests ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.2:enforce (enforce) @ dozer-osgi-tests ---
[INFO]
@garethahealy
garethahealy / openshift-client-plugin.groovy
Created February 14, 2018 18:06
Add to openshift client plugin config
import jenkins.model.Jenkins
import com.openshift.jenkins.plugins.OpenShift
import net.sf.json.JSONObject
import net.sf.json.JSONArray
import org.kohsuke.stapler.Stapler
import org.kohsuke.stapler.RequestImpl
import javax.servlet.http.HttpServletRequest
def httpServletRequest = [
@garethahealy
garethahealy / addresslist.json
Created January 25, 2018 15:42
address lists which are created
{
"apiVersion":"enmasse.io/v1",
"kind":"AddressList",
"items":[
{
"metadata":{
"name":"my-queue11",
"addressSpace":"default",
"uuid":"27087d8a-0081-3671-a221-2dcc5a3787cf"
},
@garethahealy
garethahealy / enmasse-admin-agent.log
Created January 25, 2018 14:53
oc logs admin-401198903-n27gt -c agent
2018-01-25T12:28:30.220Z agent info GET /oapi/v1/namespaces/enmasse/routes/messaging => 200
2018-01-25T12:28:30.247Z agent info Connecting to MESSAGING service with host: 172.30.57.86, port: 55671, container: admin-401198903-n27gt, id: agent-1
2018-01-25T12:28:30.269Z agent info Router agent listening on 55671
2018-01-25T12:28:30.275Z agent info GET /api/v1/namespaces/enmasse/configmaps?labelSelector=type%3Daddress-config => 200
2018-01-25T12:28:30.277Z agent info list retrieved; watching...
2018-01-25T12:28:30.278Z agent info updating addresses: {}
2018-01-25T12:28:30.279Z agent info GET /api/v1/namespaces/enmasse/pods?labelSelector=role%3Dbroker => 200
2018-01-25T12:28:30.279Z agent info list retrieved; watching...
2018-01-25T12:28:30.284Z agent info GET /api/v1/watch/namespaces/enmasse/pods?labelSelector=role%3Dbroker => 200
2018-01-25T12:28:30.285Z agent info GET /api/v1/watch/namespaces/enmasse/configmaps?labelSelector=type%3Daddress-config => 200
@garethahealy
garethahealy / addresslist.json
Created January 25, 2018 14:08
EnMasse AddressList example
{
"apiVersion": "enmasse.io/v1",
"kind": "AddressList",
"items": [
{
"metadata": {
"name": "my-queue"
},
"spec": {
"type": "queue"
{
"apiVersion":"enmasse.io/v1",
"kind":"AddressSpace",
"metadata":{
"name":"testing-1",
"namespace":"enmasse",
"createdBy":"anonymous"
},
"spec":{
"type":"brokered",
@MessageDriven(
mappedName = "HELLOWORLDMDBQueue",
activationConfig = {
@ActivationConfigProperty(propertyName = "destination", propertyValue = "HELLOWORLDMDBQueue"),
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "maxSession", propertyValue = "10")
})
@TransactionManagement(TransactionManagementType.BEAN)
@ResourceAdapter("activemq-rar")
@org.jboss.ejb3.annotation.Pool(value="mdb-strict-max-pool")
@garethahealy
garethahealy / ibm-client-mvn-install.sh
Created June 7, 2017 10:22
install ibm mq client via mvn
mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=JavaSE/providerutil.jar -DgroupId=com.ibm.mq -DartifactId=providerutil -Dversion=1.0.0 -Dpackaging=jar
mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=JavaSE/jms.jar
mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=JavaSE/fscontext.jar -DgroupId=com.ibm.mq -DartifactId=fscontext -Dversion=1.0.0 -Dpackaging=jar
mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=JavaSE/com.ibm.mq.traceControl.jar -DgroupId=com.ibm.mq -DartifactId=traceControl -Dversion=1.0.0 -Dpackaging=jar
mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=JavaSE/com.ibm.mq.allclient.jar -DgroupId=com.ibm.mq -DartifactId=allclient -Dversion=1.0.0 -Dpackaging=jar