#!/usr/bin/groovy
def localItestPattern = ""try { localItestPattern = ITEST_PATTERN} catch (Throwable e) { localItestPattern = "*KT"}
def localFailIfNoTests = ""try { localFailIfNoTests = ITEST_FAIL_IF_NO_TEST} catch (Throwable e) { localFailIfNoTests = "false"}
def versionPrefix = ""try { versionPrefix = VERSION_PREFIX} catch (Throwable e) { versionPrefix = "1.0"}
def canaryVersion = "${versionPrefix}.${env.BUILD_NUMBER}"
def fabric8Console = "${env.FABRIC8_CONSOLE ?: ''}"def utils = new io.fabric8.Utils()def label = "buildpod.${env.JOB_NAME}.${env.BUILD_NUMBER}".replace('-', '_').replace('/', '_')
mavenNode{ def envStage = utils.environmentNamespace('staging') def envProd = utils.environmentNamespace('ss-prod') git = git branch: 'feature/f8deploy', credentialsId: 'shiftwork', url: 'https://gitlab.com/myrepo/staffservice.git'
echo 'NOTE: running pipelines for the first time will take longer as build and base docker images are pulled onto the node' container(name: 'maven') {
stage 'Build Release' mavenCanaryRelease { version = canaryVersion }
stage 'Rollout Production' kubernetesApply(environment: envProd)
}}And this is our current, relevant, pom:
--
You received this message because you are subscribed to the Google Groups "fabric8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
the jenkins build log looks like it worked OK. What does the fabric8 console look like? Are there any resource created in the production namespace?
--
You received this message because you are subscribed to the Google Groups "fabric8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
And no builds or images are created.
--
You received this message because you are subscribed to the Google Groups "fabric8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Is there the DeploymentConfig in the prod namespace? I don't see any errors in the jenkins log so it looks like it created it OK?
apiVersion: v1kind: DeploymentConfigmetadata: name: shiftwork namespace: default-ss-prod selfLink: /oapi/v1/namespaces/default-ss-prod/deploymentconfigs/shiftwork uid: bf534281-e786-11e6-90ce-406186becd9d resourceVersion: '133252' generation: 1 creationTimestamp: '2017-01-31T07:27:40Z' labels: group: com.teammachine.staffrostering project: shiftwork provider: fabric8 version: 1.0.69 annotations: fabric8.io/git-branch: shiftwork-staffservice-pipeline-dev-1.0.69 fabric8.io/git-commit: c5ffdc8a1f9dff997f5318476d62901accae776a dashboard/file/kubernetes-pods.json/?var-project=shiftwork&var-version=1.0.69spec: strategy: type: Rolling rollingParams: updatePeriodSeconds: 1 intervalSeconds: 1 timeoutSeconds: 10800 maxUnavailable: 25% maxSurge: 25% resources: {} triggers: - type: ConfigChange - type: ImageChange imageChangeParams: automatic: true containerNames: - spring-boot from: kind: ImageStreamTag namespace: default-ss-prod name: 'shiftwork:1.0.69' replicas: 1 test: false selector: group: com.teammachine.staffrostering project: shiftwork provider: fabric8 template: metadata: creationTimestamp: null labels: group: com.teammachine.staffrostering project: shiftwork provider: fabric8 version: 1.0.69 annotations: fabric8.io/git-branch: shiftwork-staffservice-pipeline-dev-1.0.69 fabric8.io/git-commit: c5ffdc8a1f9dff997f5318476d62901accae776a dashboard/file/kubernetes-pods.json/?var-project=shiftwork&var-version=1.0.69 spec: containers: - name: spring-boot image: 'myip:5000/shiftwork:1.0.69' ports: - name: http containerPort: 8080 protocol: TCP - name: prometheus containerPort: 9779 protocol: TCP - name: jolokia containerPort: 8778 protocol: TCP env: - name: KUBERNETES_NAMESPACE valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.namespace - name: JAVA_APP_DIR value: /deployments resources: {} livenessProbe: httpGet: path: /health port: 8080 scheme: HTTP initialDelaySeconds: 180 timeoutSeconds: 1 periodSeconds: 10 successThreshold: 1 failureThreshold: 3 readinessProbe: httpGet: path: /health port: 8080 scheme: HTTP initialDelaySeconds: 10 timeoutSeconds: 1 periodSeconds: 10 successThreshold: 1 failureThreshold: 3 terminationMessagePath: /dev/termination-log imagePullPolicy: IfNotPresent securityContext: privileged: false restartPolicy: Always terminationGracePeriodSeconds: 30 dnsPolicy: ClusterFirst securityContext: {}status: observedGeneration: 1 conditions: - type: Available status: 'False' lastTransitionTime: '2017-01-31T07:27:40Z' message: Deployment config does not have minimum availability.
BTW is there any failures in the Jenkins log (viewable via the jenkins console)? I've sometimes seen errors show up in the Jenkins log (rather than the build log)
On 31 January 2017 at 11:03, <kurr...@gmail.com> wrote:
Hi James
On Tuesday, January 31, 2017 at 11:53:45 AM UTC+1, James Strachan wrote:the jenkins build log looks like it worked OK. What does the fabric8 console look like? Are there any resource created in the production namespace?We cannot access the F8 console. When logged into OpenShift, then clicking on the route the console, we are then just redirected to login. Entering correct details just results in being redirected again to the login page.There are no pods created.There is a service created. And there is a route created.Interestingly, or strangely, the OpenShift project that gets created is called 'default-ss-prod', which is not what is specified in the jenkinsfile. I would expect it to be just 'ss-prod'.
--
You received this message because you are subscribed to the Google Groups "fabric8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "fabric8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "fabric8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
so that look like the image 172.30.139.137:5000/shiftwork:1.0.69 cannot be found. Try ssh into one of your nodes and docker pull it to see if you can access that docker image from your nodes?