I want to run custom pipes or image with self hosted runner for deploy to on-prem.
Is this not supported?
If not, how should I use it?
Hello @dahoon jeong ,
Thank you for reaching out to Atlassian Community!
As pipes rely on docker containers to work, it's only possible to run pipes when using Linux Docker self-hosted runners. Other types of runners that run directly in a shell session, such as macOS Runners , Windows Runners and Linux Shell runners, do not currently support using pipes.
Having said that, if you are already using Linux Docker self-hosted runners, you should be able to run pipes as usual, using the same syntax you would use if your build was running in the cloud. Please find below an example YML definition :
pipelines:
default:
- step:
name: Using a pipe with Linux Docker runner
runs-on:
- 'self.hosted'
- 'linux'
script:
- echo "This is an example step"
- pipe: atlassian/email-notify:0.8.0
variables:
USERNAME: 'myemail@example.com'
PASSWORD: $PASSWORD
FROM: 'myemail@example.com'
TO: 'example1@example.com, example2@example.com, example3@example.com'
HOST: 'smtp.gmail.com'
Hope that helps! Let me know in case you have any questions.
Thank you, @dahoon jeong !
Patrik S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.