Jenkins : Azure Container Registry Tasks Plugin

Plugin Information

View Azure Container Registry Tasks on the plugin site for more information.

A Jenkins plugin to send a docker build  request to Azure Container Registry.

How to install

You can install/update this plugin in Jenkins update center (Manage Jenkins -> Manage Plugins, search Azure Container Registry Tasks Plugin).

You can also manually install the plugin if you want to try the latest feature before it's officially released. To manually install the plugin:

  1. Clone the repo and build:
    mvn package
    
  2. Open your Jenkins dashboard, go to Manage Jenkins -> Manage Plugins.
  3. Go to Advanced tab, under Upload Plugin section, click Choose File.
  4. Select azure-container-registry-tasks.hpi in target folder of your repo, click Upload.
  5. Restart your Jenkins instance after install is completed.

Send Azure Container Registry quick task

Prerequisites

To use this plugin to send Azure Container Registry quick tasks, first you need to have an Azure Service Principal in your Jenkins instance.

  1. Create an Azure Service Principal through Azure CLI or Azure portal.
  2. Open Jenkins dashboard, go to Credentials, add a new Microsoft Azure Service Principal with the credential information you just created.

Then create a Container Registry in Azure portal or through Azure CLI,

Send a quick task to Azure

You can send a quick task with your source code in following format:

  1. A GitHub repository, with specific branch and path.
  2. A local directory.
  3. A public remote tar.gz file

Changelog

version 0.6.0, 2019-01-06

  • Initial release
  • Support queue a docker build to Azure Container Registry with GitHub repo, local directory or public remote tar.gz file