Skip to content

Commit 977415a

Browse files
Merge pull request #105563 from TomArcherMsft/jenkins-task-380-storage
Jenkins: Task 384
2 parents 0db47af + 41ad8e2 commit 977415a

File tree

6 files changed

+19
-21
lines changed

6 files changed

+19
-21
lines changed

.openpublishing.redirection.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27188,8 +27188,8 @@
2718827188
},
2718927189
{
2719027190
"source_path": "articles/storage/storage-java-jenkins-continuous-integration-solution.md",
27191-
"redirect_url": "/azure/storage/common/storage-java-jenkins-continuous-integration-solution",
27192-
"redirect_document_id": true
27191+
"redirect_url": "/azure/jenkins/storage-java-jenkins-continuous-integration-solution",
27192+
"redirect_document_id": false
2719327193
},
2719427194
{
2719527195
"source_path": "articles/storage/storage-manage-access-to-resources.md",
@@ -48936,6 +48936,11 @@
4893648936
"source_path": "articles/aks/jenkins-continuous-deployment.md",
4893748937
"redirect_url": "/azure/jenkins/jenkins-continuous-deployment",
4893848938
"redirect_document_id": false
48939+
},
48940+
{
48941+
"source_path": "articles/storage/common/storage-java-jenkins-continuous-integration-solution.md",
48942+
"redirect_url": "/azure/jenkins/storage-java-jenkins-continuous-integration-solution",
48943+
"redirect_document_id": false
4893948944
}
4894048945
]
4894148946
}

articles/jenkins/index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ landingContent:
100100
- linkListType: tutorial
101101
links:
102102
- text: Using Azure Storage with a Jenkins C/I solution
103-
url: /azure/storage/storage-java-jenkins-continuous-integration-solution?toc=/azure/jenkinstoc.json&bc=/azure/bread/toc.json
103+
url: storage-java-jenkins-continuous-integration-solution.md
104104

105105
# Card
106106
- title: CI/CD to Linux VMs

articles/jenkins/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Add build agents to your existing Jenkins deployment to scale your Jenkins build
2828

2929
Once configured with an [Azure service principal](/azure/azure-resource-manager/resource-group-overview), Jenkins jobs and pipelines can use this credential to:
3030

31-
- Securely store and archive build artifacts in [Azure Storage](/azure/storage/common/storage-introduction) using the [Azure Storage plug-in](https://plugins.jenkins.io/windows-azure-storage). Review the [Jenkins storage how-to](/azure/storage/common/storage-java-jenkins-continuous-integration-solution) to learn more.
31+
- Securely store and archive build artifacts in [Azure Storage](/azure/storage/common/storage-introduction) using the [Azure Storage plug-in](https://plugins.jenkins.io/windows-azure-storage). Review the [Jenkins storage how-to](storage-java-jenkins-continuous-integration-solution.md) to learn more.
3232
- Manage and configure Azure resources with the [Azure CLI](/azure/jenkins/execute-cli-jenkins-pipeline).
3333

3434
## Deploy your code into Azure services

articles/storage/common/storage-java-jenkins-continuous-integration-solution.md renamed to articles/jenkins/storage-java-jenkins-continuous-integration-solution.md

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
---
22
title: Using Azure Storage with a Jenkins continuous integration solution
33
description: This tutorial shows how to use the Azure blob service as a repository for build artifacts created by a Jenkins continuous integration solution.
4+
keywords: jenkins, azure, devops, storage, cicd
45
ms.topic: article
5-
ms.author: tarcher
6-
7-
author: tarcher
8-
services: devops
9-
ms.service: storage
10-
custom: jenkins
116
ms.date: 08/13/2019
12-
ms.subservice: common
137
---
148

159
# Using Azure Storage with a Jenkins continuous integration solution
@@ -19,11 +13,13 @@ This article illustrates how to use Blob storage as a repository of build artifa
1913
In this tutorial, you will be using the Azure Storage Plugin for Jenkins CI made available by Microsoft.
2014

2115
## Jenkins overview
16+
2217
Jenkins enables continuous integration of a software project by allowing developers to easily integrate their code changes and have builds produced automatically and frequently, thereby increasing the productivity of the developers. Builds are versioned, and build artifacts can be uploaded to various repositories. This article shows how to use Azure blob storage as the repository of the build artifacts. It will also show how to download dependencies from Azure blob storage.
2318

2419
More information about Jenkins can be found at [Meet Jenkins](https://wiki.jenkins-ci.org/display/JENKINS/Meet+Jenkins).
2520

2621
## Benefits of using the Blob service
22+
2723
Benefits of using the Blob service to host your agile development build artifacts include:
2824

2925
* High availability of your build artifacts and/or downloadable dependencies.
@@ -32,6 +28,7 @@ Benefits of using the Blob service to host your agile development build artifact
3228
* Control over user access policies, with a choice between anonymous access, expiration-based shared access signature access, private access, etc.
3329

3430
## Prerequisites
31+
3532
* A Jenkins continuous integration solution.
3633

3734
If you currently don't have a Jenkins CI solution, you can run a Jenkins CI solution using the following technique:
@@ -45,7 +42,7 @@ Benefits of using the Blob service to host your agile development build artifact
4542

4643
While a typical Jenkins CI solution would be set up to run as a service, running the Jenkins war at the command line will be sufficient for this tutorial.
4744
* An Azure account. You can sign up for an Azure account at <https://www.azure.com>.
48-
* An Azure storage account. If you don't already have a storage account, you can create one using the steps at [Create a Storage Account](../common/storage-account-create.md).
45+
* An Azure storage account. If you don't already have a storage account, you can create one using the steps at [Create a Storage Account](../storage/common/storage-account-create.md).
4946
* Familiarity with the Jenkins CI solution is recommended but not required, as the following content will use a basic example to show you the steps needed when using the Blob service as a repository for Jenkins CI build artifacts.
5047

5148
## How to use the Blob service with Jenkins CI
@@ -93,7 +90,7 @@ For instructional purposes, you first need to create a job that will create seve
9390
**Tip**
9491

9592
Below the **Command** section where you entered a script for **Execute Windows batch command** is a link to the environment variables recognized by Jenkins. Select that link to learn the environment variable names and descriptions. Environment variables that contain special characters, such as the **BUILD_URL** environment variable, are not allowed as a container name or common virtual path.
96-
8. Select **Make new container public by default** for this example. (If you want to use a private container, you'll need to create a shared access signature to allow access, which is beyond the scope of this article. You can learn more about shared access signatures at [Using Shared Access Signatures (SAS)](storage-sas-overview.md).)
93+
8. Select **Make new container public by default** for this example. (If you want to use a private container, you'll need to create a shared access signature to allow access, which is beyond the scope of this article. You can learn more about shared access signatures at [Using Shared Access Signatures (SAS)](../storage/common/storage-sas-overview.md).)
9794
9. [Optional] Select **Clean container before uploading** if you want the container to be cleared of contents before build artifacts are uploaded (leave it unchecked if you do not want to clean the contents of the container).
9895
10. For **List of Artifacts to upload**, enter `text/*.txt`.
9996
11. For **Common virtual path for uploaded artifacts**, for purposes of this tutorial, enter `${BUILD\_ID}/${BUILD\_NUMBER}`.
@@ -142,10 +139,6 @@ This section provides an overview of the Blob service components.
142139
If you encounter any bugs with the Jenkins plugins, file an issue in the [Jenkins JIRA](https://issues.jenkins-ci.org/) for the specific component.
143140

144141
## Next steps
145-
* [Meet Jenkins](https://wiki.jenkins-ci.org/display/JENKINS/Meet+Jenkins)
146-
* [Azure Storage SDK for Java](https://github.com/azure/azure-storage-java)
147-
* [Azure Storage Client SDK Reference](https://javadoc.io/doc/com.microsoft.azure/azure-core/0.8.0/index.html)
148-
* [Azure Storage Services REST API](https://msdn.microsoft.com/library/azure/dd179355.aspx)
149-
* [Azure Storage Team Blog](https://blogs.msdn.com/b/windowsazurestorage/)
150142

151-
For more information, visit [Azure for Java developers](/java/azure).
143+
> [!div class="nextstepaction"]
144+
> [Jenkins on Azure](/azure/Jenkins/)

articles/jenkins/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
- name: Deploy to Azure Functions
5050
href: jenkins-azure-functions-deploy.md
5151
- name: Publish to Azure Storage
52-
href: /azure/storage/storage-java-jenkins-continuous-integration-solution
52+
href: storage-java-jenkins-continuous-integration-solution.md
5353
maintainContext: true
5454
- name: CI/CD to Linux VMs
5555
href: tutorial-jenkins-github-docker-cicd.md

articles/virtual-machines/linux/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@
534534
- name: Scale with VM agents
535535
href: ../../jenkins/jenkins-azure-vm-agents.md
536536
- name: Publish artifacts to Storage
537-
href: ../../storage/common/storage-java-jenkins-continuous-integration-solution.md
537+
href: ../../jenkins/storage-java-jenkins-continuous-integration-solution.md
538538
- name: Secure Jenkins
539539
href: https://jenkins.io/blog/2017/04/20/secure-jenkins-on-azure/
540540
- name: Run containers

0 commit comments

Comments
 (0)