- pipe: atlassian/kubectl-run:3.2.0
variables:
KUBE_CONFIG: $KUBE_CONFIG
KUBECTL_COMMAND: "get pods -n default --no-headers=true | grep ^core-srv | awk '{print $1}' |head -n2 |tail -n1 |xargs kubectl delete pod"
the output is this
Please I need help
Thank you for your question!
Current pipe's command implementation based on Python subprocess module.
So, this complex command with "shell pipe" is not supported.
If you need some feature implementation you could create your own custom pipe according to the guide.
Best regards,
Oleksandr Kyrdan
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.