Skip to content

Instantly share code, notes, and snippets.

@michaelsauter
michaelsauter / Jenkinsfile.example
Last active July 6, 2020 09:12
Jenkinsfile.example
odsComponentPipeline(
imageStreamTag: 'ods/jenkins-agent-base:3.x'
) {
odsComponentStageImportOpenShiftImageOrElse(context) {
stage('Build') {
sh './gradlew build'
}
odsComponentStageBuildOpenShiftImage(context)
}
@michaelsauter
michaelsauter / outline.md
Last active July 23, 2020 15:32
ods3-features

✂️ Get rid of that boilerplate!

From:

def final projectId = 'foo'
def final componentId = 'bar'
def final credentialsId = "${projectId}-cd-cd-user-with-password"
def dockerRegistry
node {
  dockerRegistry = env.DOCKER_REGISTRY
}
@michaelsauter
michaelsauter / tekton-pipelines-controller.log
Created November 16, 2020 07:25
tekton-pipelines-controller.log
{"level":"info","logger":"tekton","caller":"controller/controller.go:436","msg":"Reconcile failed. Time taken: 10.692465ms","knative.dev/traceid":"686039a6-50ca-4c45-888d-c2d5574bb1d1","knative.dev/key":"unitt-dev/build-and-deploy-run-6xqb9"}
{"level":"info","logger":"tekton.event-broadcaster","caller":"record/event.go:274","msg":"Event(v1.ObjectReference{Kind:\"PipelineRun\", Namespace:\"unitt-dev\", Name:\"build-and-deploy-run-6xqb9\", UID:\"f9649a7f-4121-49ec-ae62-e686564cf75b\", APIVersion:\"tekton.dev/v1beta1\", ResourceVersion:\"297003666\", FieldPath:\"\"}): type: 'Warning' reason: 'InternalError' 1 error occurred:\n\t* failed to delete StatefulSet affinity-assistant-402a8246ef: statefulsets.apps \"affinity-assistant-402a8246ef\" not found\n\n"}
{"level":"warn","logger":"tekton","caller":"artifacts/artifacts_storage.go:201","msg":"the configmap has no data","knative.dev/traceid":"890f787f-b29f-46e3-960f-436bac4599dc","knative.dev/key":"unitt-dev/build-and-deploy-run-8sxp8"}
{"level":"error","logger":"t
@michaelsauter
michaelsauter / ods-pipeline-introduction.md
Last active March 9, 2021 14:46
ods-pipeline-introduction.md