fix
This commit is contained in:
@@ -26,7 +26,94 @@ spec:
|
||||
type: string
|
||||
- name: branch-name
|
||||
type: string
|
||||
finally:
|
||||
- name: inform-gitea-success
|
||||
when:
|
||||
- input: "$(tasks.status)"
|
||||
operator: in
|
||||
values: ["Succeeded","Completed"]
|
||||
params:
|
||||
- name: REPO_FULL_NAME
|
||||
value: $(params.project-path)
|
||||
- name: SHA
|
||||
value: $(params.git-revision)
|
||||
- name: TARGET_URL
|
||||
value: "https://okd.media.rennes.home/k8s/ns/$(context.pipelineRun.namespace)/tekton.dev~v1~PipelineRun/$(context.pipelineRun.name)"
|
||||
- name: DESCRIPTION
|
||||
value: "auto-ci-push"
|
||||
- name: STATE
|
||||
value: "success"
|
||||
taskRef:
|
||||
name: gitea-set-status
|
||||
- name: inform-gitea-warning
|
||||
when:
|
||||
- input: "$(tasks.status)"
|
||||
operator: in
|
||||
values: ["None"]
|
||||
params:
|
||||
- name: REPO_FULL_NAME
|
||||
value: $(params.project-path)
|
||||
- name: SHA
|
||||
value: $(params.git-revision)
|
||||
- name: TARGET_URL
|
||||
value: "https://okd.media.rennes.home/k8s/ns/$(context.pipelineRun.namespace)/tekton.dev~v1~PipelineRun/$(context.pipelineRun.name)"
|
||||
- name: DESCRIPTION
|
||||
value: "auto-ci-push"
|
||||
- name: STATE
|
||||
value: "warning"
|
||||
taskRef:
|
||||
name: gitea-set-status
|
||||
- name: inform-gitea-error
|
||||
when:
|
||||
- input: "$(tasks.status)"
|
||||
operator: in
|
||||
values: ["Failed"]
|
||||
params:
|
||||
- name: REPO_FULL_NAME
|
||||
value: $(params.project-path)
|
||||
- name: SHA
|
||||
value: $(params.git-revision)
|
||||
- name: TARGET_URL
|
||||
value: "https://okd.media.rennes.home/k8s/ns/$(context.pipelineRun.namespace)/tekton.dev~v1~PipelineRun/$(context.pipelineRun.name)"
|
||||
- name: DESCRIPTION
|
||||
value: "auto-ci-push"
|
||||
- name: STATE
|
||||
value: "error"
|
||||
taskRef:
|
||||
name: gitea-set-status
|
||||
- name: inform-gitea-success
|
||||
when:
|
||||
- input: "$(tasks.status)"
|
||||
operator: in
|
||||
values: ["Succeeded","Completed"]
|
||||
params:
|
||||
- name: REPO_FULL_NAME
|
||||
value: $(params.project-path)
|
||||
- name: SHA
|
||||
value: $(params.git-revision)
|
||||
- name: TARGET_URL
|
||||
value: "https://okd.media.rennes.home/k8s/ns/$(context.pipelineRun.namespace)/tekton.dev~v1~PipelineRun/$(context.pipelineRun.name)"
|
||||
- name: DESCRIPTION
|
||||
value: "auto-ci-push"
|
||||
- name: STATE
|
||||
value: "pending"
|
||||
taskRef:
|
||||
name: gitea-set-status
|
||||
tasks:
|
||||
- name: inform-gitea-start
|
||||
params:
|
||||
- name: REPO_FULL_NAME
|
||||
value: $(params.project-path)
|
||||
- name: SHA
|
||||
value: $(params.git-revision)
|
||||
- name: TARGET_URL
|
||||
value: "https://okd.media.rennes.home/k8s/ns/$(context.pipelineRun.namespace)/tekton.dev~v1~PipelineRun/$(context.pipelineRun.name)"
|
||||
- name: DESCRIPTION
|
||||
value: "auto-ci-push"
|
||||
- name: STATE
|
||||
value: "pending"
|
||||
taskRef:
|
||||
name: gitea-set-status
|
||||
- name: git-clone
|
||||
params:
|
||||
- name: url
|
||||
|
||||
Reference in New Issue
Block a user