Questions tagged [openshift-pipelines]

13 questions
4
votes
2 answers

Continue Tekton pipeline after failure (similar to jenkins pipeline catchError behaviour)

I have a pipeline where I want to: provision some resources, run some tests, tear down the resources. I want the tear down task, in step 3, to run regardless of whether tests passed or failed, in step 2. As far as I’ve understoood runAfter only…
gsaslis
  • 3,066
  • 2
  • 26
  • 32
2
votes
0 answers

How do I automatically apply updates to Tekton resources stored in a git repo?

As background, I am in the process of upgrading a few projects from Jenkins and Gitlab CI based CI to use Tekton. In those projects, it is common to see a Jenkinsfile or .gitlab-ci.yml defining what the pipeline is to run for the project. Those…
1
vote
1 answer

Tekton Pipelines: Enable alpha features using released pipelines yaml without the need to store (& maintain) feature-flags ConfigMap

We'd like to use Tekton experimental features such as the Pipelines In Pipelines feature. We already installed the feature as described in the README via kubectl apply but end up in an error like this: Pipeline default/buildpacks-test-pipeline can't…
jonashackt
  • 12,022
  • 5
  • 67
  • 124
1
vote
1 answer

Cache Maven dependencies in Tekton Maven Task from Tekton Hub

We want to build a Spring Boot-based project using Maven. We found the Maven Task on the Tekton Hub and already have a running Pipeline. In a shortened version our pipeline.yml looks like this: apiVersion: tekton.dev/v1beta1 kind:…
jonashackt
  • 12,022
  • 5
  • 67
  • 124
1
vote
1 answer

Report Tekton pipeline status to GitLab regardless if pipeline failed or succeeded (using gitlab-set-status Task)

We're already using the gitlab-set-status Task from Tekton Hub to report our Tekton Pipeline's status back into our GitLab instance (here's our EKS setup & Tekton installment and a example project on gitlab.com). Our pipeline.yml looks like this and…
1
vote
1 answer

How can I make a Tekton Task's command execution wait until the previous Task's spun up pod is ready for requests

I have an OpenShift/Tekton pipeline which in Task A deploys an application to a test environment. In Task B, the application's test suite is run. If all tests pass, then the application is deployed to another environment in Task C. The problem is…
0
votes
1 answer

How to use single eventlistener for multiple tekton pipelines?

I'd like to have single eventlistener that would trigger different pipelines based on the git repo name.
Gas
  • 17,601
  • 4
  • 46
  • 93
0
votes
1 answer

Openshift Pipeline can not find user

I have below error in Openshift Pipeline - tekton pipeline controller Failed to list *v1alpha1.Run: runs.tekton.dev is forbidden: User "system:serviceaccount:openshift-pipelines:tekton-pipelines-controller" cannot list resource "runs" in API group…
JJ36
  • 139
  • 1
  • 13
0
votes
1 answer

Tekton: yq Task gives safelyRenameFile [ERRO] Failed copying from /tmp/temp & [ERRO] open /workspace/source permission denied error

We have a Tekton pipeline and want to replace the image tags contents of our deployment.yml: apiVersion: apps/v1 kind: Deployment metadata: name: microservice-api-spring-boot spec: replicas: 3 revisionHistoryLimit: 3 selector: …
jonashackt
  • 12,022
  • 5
  • 67
  • 124
0
votes
1 answer

Can't figure out how to do variable substitution in my Tekton pipeline

So I'm not sure if this is actually a Bash issue or a Tekton issue. The problem occurs in my OpenShift (Tekton) pipeline. After having deployed my application, I have a step where I need to check if the Deployment has actually been created. This is…
0
votes
1 answer

Installing Tekton Triggers EventListener (for GitLab) on OpenShift leads to: error configmaps is forbidden: cannot get resource configmaps in API

We're working on the integration of GitLab and Tekton / OpenShift Pipelines via Webhooks and Tekton Triggers. We followed this example project and crafted our EventListener that ships with the needed Interceptor, TriggerBinding and TriggerTemplate…
jonashackt
  • 12,022
  • 5
  • 67
  • 124
0
votes
2 answers

Tekton pipeline - start pipelinerun via kubernetes/openshift api

Just wondering if there's a way to start a Tekton pipeline via the Kubernetes API. I know we can use Triggers or the tkn cli. But for my use-case, the API would be a better option. Is there a way to do that? I'm using OpenShift, but can't find any…
Bharath
  • 559
  • 11
  • 27
0
votes
1 answer

Openshift: CI/CD access imagestream from different clusters

I'm configuring CI/CD in OpenShift: Dev > Stage > Prod and I'm facing some issues in Stage to reach Dev ImageStream. The whole setup looks like this: Dev - runs Tekton pipeline and on the last task triggers BuildConfig > Build outputs new image to…
Poli
  • 77
  • 1
  • 11