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:
-
With template:
{“id”:2087,“repo_id”:73,“trigger”:“nataliavr”,“number”:816,“parent”:815,“status”:“pending”,“event”:“push”,“action”:“”,“link”:“https://github.com/coognitive/core.centralized-auth/compare/092e1a462b0f...b7a16941f416",“timestamp”:0,“message”:"Update .drone.yaml”,“before”:“092e1a462b0feaf1b48be3fbef739c8d02e44ca6”,“after”:“b7a16941f416d320184855ca996e2aa6402285ec”,“ref”:“refs/heads/dev”,“source_repo”:“”,“source”:“dev”,“target”:“dev”,“author_login”:“nataliavr”,“author_name”:“nataliavr”,“author_email”:"75317270+nataliavr@users.noreply.github.com",“author_avatar”:“https://avatars.githubusercontent.com/u/75317270?v=4",“sender”:“nataliavr”,“started”:0,“finished”:0,“created”:1663228309,“updated”:1663228309,“version”:1,“stages”:[{“id”:2040,“repo_id”:73,“build_id”:2087,“number”:1,“name”:“default”,“kind”:“template”,“status”:“pending”,“errignore”:false,“exit_code”:0,“os”:“linux”,“arch”:“amd64”,“started”:0,“stopped”:0,“created”:1663228309,“updated”:1663228309,“version”:1,“on_success”:true,"on_failure”:false}]} -
Without template:
{“id”:2088,“repo_id”:73,“trigger”:“@hook”,“number”:817,“status”:“success”,“event”:“push”,“action”:“”,“link”:“https://github.com/coognitive/core.centralized-auth/compare/b7a16941f416...d454c800a119",“timestamp”:0,“message”:"Update .drone.yaml”,“before”:“b7a16941f416d320184855ca996e2aa6402285ec”,“after”:“d454c800a119bd528a8d12443abf9778aa17c62f”,“ref”:“refs/heads/dev”,“source_repo”:“”,“source”:“dev”,“target”:“dev”,“author_login”:“nataliavr”,“author_name”:“nataliavr”,“author_email”:"75317270+nataliavr@users.noreply.github.com",“author_avatar”:“https://avatars.githubusercontent.com/u/75317270?v=4",“sender”:“nataliavr”,“started”:1663228523,“finished”:1663228535,“created”:1663228523,“updated”:1663228523,“version”:3,“stages”:[{“id”:2041,“repo_id”:73,“build_id”:2088,“number”:1,“name”:“default-test”,“kind”:“pipeline”,“type”:“kubernetes”,“status”:“success”,“errignore”:false,“exit_code”:0,“machine”:“drone-runner-kube-687884b76f-vlqj5”,“os”:“linux”,“arch”:“amd64”,“started”:1663228523,“stopped”:1663228535,“created”:1663228523,“updated”:1663228535,“version”:4,“on_success”:true,“on_failure”:false,“steps”:[{“id”:6228,“step_id”:2041,“number”:1,“name”:“clone”,“status”:“success”,“exit_code”:0,“started”:1663228525,“stopped”:1663228532,“version”:4,“image”:“drone/git:latest”},{“id”:6229,“step_id”:2041,“number”:2,“name”:“test”,“status”:“success”,“exit_code”:0,“started”:1663228532,“stopped”:1663228535,“version”:4,“depends_on”:[“clone”],“image”:"docker.io/library/alpine:latest”}]}]}