Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Atlassian DevOps Toolchain Cookbook

You're reading from   Atlassian DevOps Toolchain Cookbook Recipes for building, automating, and managing applications with Jira, Bitbucket Pipelines, and more

Arrow left icon
Product type Paperback
Published in Jul 2024
Publisher Packt
ISBN-13 9781835463789
Length 504 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Authors (4):
Arrow left icon
Rodney Nissen Rodney Nissen
Author Profile Icon Rodney Nissen
Rodney Nissen
Robert Wen Robert Wen
Author Profile Icon Robert Wen
Robert Wen
Alex Ortiz Alex Ortiz
Author Profile Icon Alex Ortiz
Alex Ortiz
Edward Gaile Edward Gaile
Author Profile Icon Edward Gaile
Edward Gaile
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Preface 1. Part 1:Beginning the Cycle FREE CHAPTER
2. Chapter 1: An Introduction to DevOps and the Atlassian Ecosystem 3. Chapter 2: Discovering Customer Needs with Jira Product Discovery 4. Chapter 3: Planning and Documentation with Confluence 5. Part 2: Development to Deployment
6. Chapter 4: Enabling Connections for Design, Source Control, and Continuous Integration 7. Chapter 5: Understanding Bitbucket and Bitbucket Pipelines 8. Chapter 6: Extending and Executing Bitbucket Pipelines 9. Chapter 7: Leveraging Test Case Management and Security Tools for DevSecOps 10. Chapter 8: Deploying with Bitbucket Pipelines 11. Chapter 9: Leveraging Docker and Kubernetes for Advanced Configurations 12. Part 3: Maintaining Operations
13. Chapter 10: Collaborating with Operations through Continuous Deployment and Observability 14. Chapter 11: Monitoring Component Activity and Metrics Through CheckOps in Compass 15. Chapter 12: Escalate Using Opsgenie Alerts 16. Part 4: Putting It into Practice
17. Chapter 13: Putting It All Together with a Real-World Example 18. Chapter 14: Appendix – Key Takeaways and the Future of Atlassian DevOps Tools 19. Index 20. Other Books You May Enjoy

Defining a runner for a pipeline

In Chapter 5, we saw how to define a self-hosted runner. Bitbucket Pipelines allows the use of self-hosted runners to ensure not only are we using the correct platforms for building, but by specifying our own resources, we can avoid the build time limits of Bitbucket Cloud.

Now that we have runners defined, let’s see how to call them in bitbucket-pipelines.yml.

How to do it...

Your self-hosted runners can be defined on a step basis in your bitbucket-pipelines.yml file. Let’s see how that’s done:

  1. For a given step, define the runner to use for that step by adding the runs-on keyword followed by all the applicable labels. The following code snippet shows such an application:
    pipelines:
      custom:
        customPipelineWithRunnerStep:
          - step:
              name: First Step
           ...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime