Running pipelines from templates not working

Hey, I am trying to run pipelines using templates but all builds stuck at pending.
I am new with the templates option, it worked for me for a while until suddenly all template pipelines are stuck at pending.
The weird thing is, that when running the same pipeline exactly not from template- it works fine.

Drone configuration:
Deployed with helm over our eks cluster
drone chart version- 0.6.0
drone runner kube chart version- 0.1.10

Providing an examples:
Pipeline:
kind: pipeline
type: kubernetes
name: default-test
steps:

  • name: test
    image: alpine
    commands:
    • echo “hey”

Build info:

Hi @natali let me check the possible reasons for this issue and get back to you.

Thanks!

Hi @natali can you check this link? you can get some solution from here: Drone hangs when using templates - Drone

Thanks!

Tried to add “—” as they mentioned in the end, but still pending.


kind: template
load: test.yaml

Hi @natali can you share the template that you are using along with .drone.yml file?

Thanks!

It also happend with other pipelines, so I made a very basic pipeline just to test templates issue
The template is:

kind: pipeline
type: kubernetes
name: default-test
steps:
   - name: test
     image: alpine
     commands:
        - echo "hey"

and .drone.yml is:

---
kind: template
load: test.yaml

I tested it now with another repo which haven’t been activated before to make a clean start, and in the other repo the same template works.
But still when trying to run on first repo it stuck at pending.

Is there something that might prevent templates on specific repo? since running regular pipelines on that repo works fine

got it! @natali let me check

@natali usually templates are attached to the organization so you might possibly get an error if you tried to use a template from a different organization.

Thanks!