Created
March 2, 2022 12:10
-
-
Save sahil143/30f132ae97c91d5b1492317d9de7b3c8 to your computer and use it in GitHub Desktop.
This file contains 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": "tekton.dev/v1beta1", | |
"kind": "PipelineRun", | |
"metadata": { | |
"creationTimestamp": "2022-03-01T11:43:11Z", | |
"generateName": "java-quarkus-basic-", | |
"generation": 1, | |
"labels": { | |
"build.appstudio.openshift.io/application": "new-app", | |
"build.appstudio.openshift.io/build": "true", | |
"build.appstudio.openshift.io/component": "java-quarkus-basic", | |
"build.appstudio.openshift.io/type": "build", | |
"build.appstudio.openshift.io/version": "0.1", | |
"pipelines.openshift.io/runtime": "generic", | |
"pipelines.openshift.io/strategy": "docker", | |
"pipelines.openshift.io/used-by": "build-cloud", | |
"tekton.dev/pipeline": "devfile-build" | |
}, | |
"managedFields": [ | |
{ | |
"apiVersion": "tekton.dev/v1beta1", | |
"fieldsType": "FieldsV1", | |
"fieldsV1": { | |
"f:metadata": { | |
"f:generateName": {}, | |
"f:labels": { | |
".": {}, | |
"f:build.appstudio.openshift.io/application": {}, | |
"f:build.appstudio.openshift.io/build": {}, | |
"f:build.appstudio.openshift.io/component": {}, | |
"f:build.appstudio.openshift.io/type": {}, | |
"f:build.appstudio.openshift.io/version": {} | |
}, | |
"f:ownerReferences": { | |
".": {}, | |
"k:{\"uid\":\"fd2a94d8-d123-4de6-9075-dbe319647ff0\"}": {} | |
} | |
}, | |
"f:spec": { | |
".": {}, | |
"f:params": {}, | |
"f:pipelineRef": { | |
".": {}, | |
"f:bundle": {}, | |
"f:name": {} | |
}, | |
"f:workspaces": {} | |
} | |
}, | |
"manager": "manager", | |
"operation": "Update", | |
"time": "2022-03-01T11:43:11Z" | |
}, | |
{ | |
"apiVersion": "tekton.dev/v1beta1", | |
"fieldsType": "FieldsV1", | |
"fieldsV1": { | |
"f:metadata": { | |
"f:labels": { | |
"f:pipelines.openshift.io/runtime": {}, | |
"f:pipelines.openshift.io/strategy": {}, | |
"f:pipelines.openshift.io/used-by": {}, | |
"f:tekton.dev/pipeline": {} | |
} | |
} | |
}, | |
"manager": "openshift-pipelines-controller", | |
"operation": "Update", | |
"time": "2022-03-01T11:43:12Z" | |
}, | |
{ | |
"apiVersion": "tekton.dev/v1beta1", | |
"fieldsType": "FieldsV1", | |
"fieldsV1": { | |
"f:status": { | |
".": {}, | |
"f:completionTime": {}, | |
"f:conditions": {}, | |
"f:pipelineSpec": { | |
".": {}, | |
"f:params": {}, | |
"f:tasks": {}, | |
"f:workspaces": {} | |
}, | |
"f:startTime": {}, | |
"f:taskRuns": { | |
".": {}, | |
"f:java-quarkus-basic-gfd2q-appstudio-init-wfr2s": { | |
".": {}, | |
"f:pipelineTaskName": {}, | |
"f:status": { | |
".": {}, | |
"f:completionTime": {}, | |
"f:conditions": {}, | |
"f:podName": {}, | |
"f:startTime": {}, | |
"f:steps": {}, | |
"f:taskSpec": { | |
".": {}, | |
"f:description": {}, | |
"f:params": {}, | |
"f:results": {}, | |
"f:steps": {}, | |
"f:workspaces": {} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"manager": "openshift-pipelines-controller", | |
"operation": "Update", | |
"subresource": "status", | |
"time": "2022-03-01T12:43:12Z" | |
} | |
], | |
"name": "java-quarkus-basic-gfd2q", | |
"namespace": "sbudhwar-1", | |
"ownerReferences": [ | |
{ | |
"apiVersion": "appstudio.redhat.com/v1alpha1", | |
"kind": "Component", | |
"name": "java-quarkus-basic", | |
"uid": "fd2a94d8-d123-4de6-9075-dbe319647ff0" | |
} | |
], | |
"resourceVersion": "247438289", | |
"uid": "13bda77f-a3f4-47c9-80b2-ec8eaad418e6" | |
}, | |
"spec": { | |
"params": [ | |
{ | |
"name": "git-url", | |
"value": "https://github.com/devfile-samples/devfile-sample-code-with-quarkus.git" | |
}, | |
{ | |
"name": "output-image", | |
"value": "quay.io/redhat-appstudio/user-workload:sbudhwar-1-java-quarkus-basic" | |
} | |
], | |
"pipelineRef": { | |
"bundle": "quay.io/redhat-appstudio/build-templates-bundle@sha256:2205a29208fa686b47f841819f7abedb64adb93935493693892d0e18bbdbb77e", | |
"name": "devfile-build" | |
}, | |
"serviceAccountName": "pipeline", | |
"timeout": "1h0m0s", | |
"workspaces": [ | |
{ | |
"name": "workspace", | |
"persistentVolumeClaim": { | |
"claimName": "appstudio" | |
}, | |
"subPath": "java-quarkus-basic/initialbuildpath" | |
}, | |
{ | |
"name": "registry-auth", | |
"secret": { | |
"secretName": "redhat-appstudio-registry-pull-secret" | |
} | |
} | |
] | |
}, | |
"status": { | |
"completionTime": "2022-03-01T12:43:12Z", | |
"conditions": [ | |
{ | |
"lastTransitionTime": "2022-03-01T12:43:12Z", | |
"message": "PipelineRun \"java-quarkus-basic-gfd2q\" failed to finish within \"1h0m0s\"", | |
"reason": "PipelineRunTimeout", | |
"status": "False", | |
"type": "Succeeded" | |
} | |
], | |
"pipelineSpec": { | |
"params": [ | |
{ | |
"description": "Source Repository URL", | |
"name": "git-url", | |
"type": "string" | |
}, | |
{ | |
"default": "main", | |
"description": "Revision of the Source Repository", | |
"name": "revision", | |
"type": "string" | |
}, | |
{ | |
"description": "Fully Qualified Output Image", | |
"name": "output-image", | |
"type": "string" | |
}, | |
{ | |
"default": ".", | |
"description": "The path to your source code", | |
"name": "path-context", | |
"type": "string" | |
}, | |
{ | |
"default": "Dockerfile", | |
"description": "Path to the Dockerfile", | |
"name": "dockerfile", | |
"type": "string" | |
} | |
], | |
"tasks": [ | |
{ | |
"name": "appstudio-init", | |
"params": [ | |
{ | |
"name": "image-url", | |
"value": "$(params.output-image)" | |
} | |
], | |
"taskRef": { | |
"bundle": "quay.io/redhat-appstudio/appstudio-tasks:init-v0.1.4", | |
"kind": "Task", | |
"name": "init" | |
}, | |
"workspaces": [ | |
{ | |
"name": "source", | |
"workspace": "workspace" | |
}, | |
{ | |
"name": "registry-auth", | |
"workspace": "registry-auth" | |
}, | |
{ | |
"name": "git-auth", | |
"workspace": "git-auth" | |
} | |
] | |
}, | |
{ | |
"name": "clone-repository", | |
"params": [ | |
{ | |
"name": "url", | |
"value": "$(params.git-url)" | |
}, | |
{ | |
"name": "revision", | |
"value": "$(params.revision)" | |
} | |
], | |
"runAfter": [ | |
"appstudio-init" | |
], | |
"taskRef": { | |
"kind": "ClusterTask", | |
"name": "git-clone" | |
}, | |
"workspaces": [ | |
{ | |
"name": "output", | |
"workspace": "workspace" | |
} | |
] | |
}, | |
{ | |
"name": "analyze-devfile", | |
"runAfter": [ | |
"clone-repository" | |
], | |
"taskRef": { | |
"bundle": "quay.io/redhat-appstudio/appstudio-tasks:analyze-devfile-v0.1.4", | |
"kind": "Task", | |
"name": "analyze-devfile" | |
}, | |
"workspaces": [ | |
{ | |
"name": "source", | |
"workspace": "workspace" | |
} | |
] | |
}, | |
{ | |
"name": "appstudio-configure-build", | |
"runAfter": [ | |
"analyze-devfile" | |
], | |
"taskRef": { | |
"bundle": "quay.io/redhat-appstudio/appstudio-tasks:configure-build-v0.1.4", | |
"kind": "Task", | |
"name": "configure-build" | |
}, | |
"when": [ | |
{ | |
"input": "$(tasks.appstudio-init.results.exists)", | |
"operator": "in", | |
"values": [ | |
"false" | |
] | |
} | |
], | |
"workspaces": [ | |
{ | |
"name": "source", | |
"workspace": "workspace" | |
}, | |
{ | |
"name": "registry-auth", | |
"workspace": "registry-auth" | |
}, | |
{ | |
"name": "git-auth", | |
"workspace": "git-auth" | |
} | |
] | |
}, | |
{ | |
"name": "build-container", | |
"params": [ | |
{ | |
"name": "IMAGE", | |
"value": "$(params.output-image)" | |
}, | |
{ | |
"name": "BUILDER_IMAGE", | |
"value": "registry.redhat.io/rhel8/buildah@sha256:99cae35f40c7ec050fed3765b2b27e0b8bbea2aa2da7c16408e2ca13c60ff8ee" | |
}, | |
{ | |
"name": "STORAGE_DRIVER", | |
"value": "vfs" | |
}, | |
{ | |
"name": "DOCKERFILE", | |
"value": "$(tasks.analyze-devfile.results.dockerfile)" | |
}, | |
{ | |
"name": "CONTEXT", | |
"value": "$(params.path-context)" | |
}, | |
{ | |
"name": "TLSVERIFY", | |
"value": "true" | |
}, | |
{ | |
"name": "FORMAT", | |
"value": "oci" | |
}, | |
{ | |
"name": "BUILD_EXTRA_ARGS", | |
"value": "$(tasks.appstudio-configure-build.results.buildah-auth-param)" | |
}, | |
{ | |
"name": "PUSH_EXTRA_ARGS", | |
"value": "$(tasks.appstudio-configure-build.results.buildah-auth-param)" | |
} | |
], | |
"runAfter": [ | |
"appstudio-configure-build" | |
], | |
"taskRef": { | |
"kind": "ClusterTask", | |
"name": "buildah" | |
}, | |
"workspaces": [ | |
{ | |
"name": "source", | |
"workspace": "workspace" | |
} | |
] | |
}, | |
{ | |
"name": "show-summary", | |
"params": [ | |
{ | |
"name": "pipeline-run-name", | |
"value": "$(context.pipelineRun.name)" | |
}, | |
{ | |
"name": "git-url", | |
"value": "$(params.git-url)" | |
}, | |
{ | |
"name": "image-url", | |
"value": "$(params.output-image)" | |
}, | |
{ | |
"name": "deploy-yaml", | |
"value": "$(tasks.analyze-devfile.results.deploy)" | |
} | |
], | |
"runAfter": [ | |
"build-container" | |
], | |
"taskRef": { | |
"bundle": "quay.io/redhat-appstudio/appstudio-tasks:summary-v0.1.4", | |
"kind": "Task", | |
"name": "summary" | |
} | |
}, | |
{ | |
"name": "skip-rebuild-summary", | |
"params": [ | |
{ | |
"name": "pipeline-run-name", | |
"value": "$(context.pipelineRun.name)" | |
}, | |
{ | |
"name": "git-url", | |
"value": "$(params.git-url)" | |
}, | |
{ | |
"name": "image-url", | |
"value": "$(params.output-image)" | |
}, | |
{ | |
"name": "deploy-yaml", | |
"value": "$(tasks.analyze-devfile.results.deploy)" | |
} | |
], | |
"runAfter": [ | |
"analyze-devfile" | |
], | |
"taskRef": { | |
"bundle": "quay.io/redhat-appstudio/appstudio-tasks:summary-v0.1.4", | |
"kind": "Task", | |
"name": "summary" | |
}, | |
"when": [ | |
{ | |
"input": "$(tasks.appstudio-init.results.exists)", | |
"operator": "in", | |
"values": [ | |
"true" | |
] | |
} | |
] | |
} | |
], | |
"workspaces": [ | |
{ | |
"name": "workspace" | |
}, | |
{ | |
"name": "registry-auth", | |
"optional": true | |
}, | |
{ | |
"name": "git-auth", | |
"optional": true | |
} | |
] | |
}, | |
"startTime": "2022-03-01T11:43:12Z", | |
"taskRuns": { | |
"java-quarkus-basic-gfd2q-appstudio-init-wfr2s": { | |
"pipelineTaskName": "appstudio-init", | |
"status": { | |
"completionTime": "2022-03-01T12:43:12Z", | |
"conditions": [ | |
{ | |
"lastTransitionTime": "2022-03-01T12:43:12Z", | |
"message": "TaskRun \"java-quarkus-basic-gfd2q-appstudio-init-wfr2s\" failed to finish within \"1h0m0s\"", | |
"reason": "TaskRunTimeout", | |
"status": "False", | |
"type": "Succeeded" | |
} | |
], | |
"podName": "java-quarkus-basic-gfd2q-appstudio-init-wfr2s-pod-9hwpv", | |
"startTime": "2022-03-01T11:43:12Z", | |
"steps": [ | |
{ | |
"container": "step-appstudio-init", | |
"name": "appstudio-init", | |
"terminated": { | |
"exitCode": 1, | |
"finishedAt": "2022-03-01T12:43:12Z", | |
"reason": "TaskRunTimeout", | |
"startedAt": null | |
} | |
} | |
], | |
"taskSpec": { | |
"description": "App Studio Initialize Pipeline Task, include flags for rebuild and auth.", | |
"params": [ | |
{ | |
"description": "Image URL for testing", | |
"name": "image-url", | |
"type": "string" | |
} | |
], | |
"results": [ | |
{ | |
"description": "true if rebuild needs", | |
"name": "rebuild-if-exists" | |
}, | |
{ | |
"description": "true if exists false otherwise", | |
"name": "exists" | |
}, | |
{ | |
"description": "docker config location", | |
"name": "registry-auth" | |
}, | |
{ | |
"description": "git for registry.", | |
"name": "git-auth" | |
} | |
], | |
"steps": [ | |
{ | |
"image": "quay.io/redhat-appstudio/appstudio-utils:v0.1.4", | |
"name": "appstudio-init", | |
"resources": {}, | |
"script": "#!/bin/bash \necho \"App Studio Build Initialize: $(params.image-url)\" \necho \necho \"Determine if Image Already Exists\"\nbash /appstudio-utils/util-scripts/image-exists.sh $(params.image-url) /tekton/results\n\necho \"Rebuild if Image Already Exists set to false.\"\n# TODO allow external configuration to force rebuilds\necho -n \"false\" /tekton/results/rebuild-if-exists\necho\n" | |
} | |
], | |
"workspaces": [ | |
{ | |
"name": "source", | |
"optional": true | |
}, | |
{ | |
"name": "registry-auth", | |
"optional": true | |
}, | |
{ | |
"name": "git-auth", | |
"optional": true | |
} | |
] | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment