image
Demo 11: Webhooks for System Integration
Start course
Difficulty
Beginner
Duration
2h 8m
Students
1150
Ratings
4.7/5
Description

Take this beginner-level course on 'Atlassian BitBucket' to delve into the core principles and applied benefits for your software projects. This course, made up of 8 lectures and 14 demos, will expertly teach and explain how to perform Git-related tasks along with implementing and connecting BitBucket to third parties while always being aware of the various security options available.

This course would appeal to a range of job roles including software developers, build and release engineers and DevOps practitioners. All of the skills that you will gain from doing this course will yield a tangible dividend for the projects with your enterprise; allowing you to use, control and manage BitBucket to manage and maintain your software products.

Learning Objectives 

  • Understand the basic principles of version control as implemented using the Git protocol and
  • Learn how to effectively use BitBucket to manage and maintain your software projects
  • Assess the benefits of using BitBucket to manage and secure your software engineering assets
  • Recognize and explain how to perform all basic Git related tasks such as creating and cloning a repository, branching, and merging.
  • Study to implement and connect BitBucket with other 3rd party systems 
  • Be aware of the different security options available to secure your BitBucket setup
  • Be able to use, control, and manage BitBucket through either using the web-based administration console and/or by using a git client.

Intended Audience

  • Software Developers 
  • Software Build and Release Engineers
  • DevOps Practitioners

Prerequisites

To be able to get the most out of this course we recommend having a basic understanding of:

  • Software development and the software development life cycle
  • Software development tools
  • Version control and associated workflows

Related Training Content

After completing this course we recommend taking the 'Introduction to Continuous Integration' Course

To discover more content like this, you will find all of our training in the Cloud Academy Content Training Library.

Transcript

Welcome back. In this demonstration, we'll show you webhooks. For those unfamiliar with webhooks, webhooks are simply a mechanism to trigger on events that take place and then data about those events are communicated using HTTP, with the data being sent to an endpoint of your choice. This allows you to parse the data about that event and then perform whatever activities you need to in your own systems against that data. Okay, let's start. So, we'll pick our repository and then go to settings. Under settings, under workflow, we click webhooks. Next, we click the add webhook button. In this case, we'll give it a title, CommitWebhook1. Okay, so we need to specify a URL. So, we need something to receive this. So what I like to use, for demonstration purposes and for testing, is an online website called webhook.site. And so this will generate a test inpoint that we can send our webhook data to. So, we copy the unique URL that's generated for us and within bitbucket, we'll paste that URL here. And then for triggers, we'll select the show full list and on it, you have the ability to register for all these different types of events. We'll simply go with a push. We'll click save, and now the webhook has been created for us. So, the next thing we need to do is kick off, or trigger, our webhook.

So, we'll jump back into the terminal and we'll do a directory listing. In here, we'll simply make a copy of our Demo1.png file, and we'll call it Demo2.png. We'll do a get status and we'll add both of these. Okay, we'll give it a commit message and we'll push to the repository, and that's completed. So now if all has gone well, the webhook should also trigger and then back within our tester, we should be able to see that a post has been done, and it has. So you can see our incoming post has been received. And if we take a closer look at the data received, at the receiving side, we can see, for example, our commit message. So, we specified updates, and it was of type commit. So, once you receive this data, you can parse it and as previously mentioned, and do whatever activities you require in your own systems. So, in summary, this is an integration feature that is really useful to use. Okay, that completes this demonstration. Go ahead and close it and we'll see you shortly in the next one.

About the Author
Students
143802
Labs
71
Courses
109
Learning Paths
209

Jeremy is a Content Lead Architect and DevOps SME here at Cloud Academy where he specializes in developing DevOps technical training documentation.

He has a strong background in software engineering, and has been coding with various languages, frameworks, and systems for the past 25+ years. In recent times, Jeremy has been focused on DevOps, Cloud (AWS, Azure, GCP), Security, Kubernetes, and Machine Learning.

Jeremy holds professional certifications for AWS, Azure, GCP, Terraform, Kubernetes (CKA, CKAD, CKS).