-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how do I set pipelinerun wait for the previous pipelinerun execution to complete #5485
Comments
Hi, could you elaborate your use cases? Why not put the tasks in the same pipeline if they have dependency? |
If I am reading this correctly, you have multiple runs of the same pipeline but they all need to share a single PVC that can only be mounted to one pod at a time. In that case, tektoncd/community#818 might be what you need |
@dibyom yes,I use git-clone and build code task in pipeline, but the git-clone task will clean the pvc workspace, and the build code task will have some error. |
Wonder if pipeline in pipeline is able to address this issue? |
In fact, there are two points to this problem: Regarding the first point, it has not yet been resolved and needs to be seen in the subsequent update iterations。 Regarding the second point, I have implemented two solutions so far: apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
generateName: eve-php-pre-volumeclaimtemplate-
namespace: tekton-run
spec:
workspaces:
- name: git-clone-workspace-random
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi 2.If you use TriggerTemplate, then you can specify in apiVersion: triggers.tekton.dev/v1alpha1
kind: TriggerTemplate
metadata:
name: trigger-template-eve-php-pre
namespace: tekton-run
spec:
params:
- name: user-username
resourcetemplates:
- apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
generateName: eve-php-pre-pipelinerun-
namespace: tekton-run
spec:
workspaces:
- name: git-clone-workspace
persistentVolumeClaim:
claimName: pvc-tekton
subPath: pvc-$(uid) |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I want to set pipelinerun in serial, because the task in pipeline use the same pvc
The text was updated successfully, but these errors were encountered: