Skip to content
This repository was archived by the owner on Jun 19, 2020. It is now read-only.

Commit

Permalink
Revert changes to azure-jenkins template
Browse files Browse the repository at this point in the history
From commit 3a47045 and 67b9bca
  • Loading branch information
ejizba committed Apr 24, 2017
1 parent e865690 commit 4788eae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 32 deletions.
7 changes: 0 additions & 7 deletions azure-jenkins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@ Run this command:
ssh -L 8080:localhost:8080 <User name>@<Public DNS name of instance you just created>
```

If you see the following error: "bind:address is already in use", then you need to include the IP Address as follows:

```
ssh -L localhost:8080:<Public IP>:8080 <User name@<Public IP>
```


## C. Configure Sample Jobs and Azure Active Directory configuration
1. Once you are logged into the VM, run /opt/azure_jenkins_config/config_azure.sh and pick option 1 - "All of the below". This script will guide you to set up and configure the Azure Storage plugin to be used in the sample jobs to upload and download to Storage.
It will also provide a Service Principal to access Azure resources from Jenkins.
Expand Down
33 changes: 9 additions & 24 deletions azure-jenkins/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,22 @@
"jenkinsDnsPrefix": {
"type": "string",
"minLength": 1,
"maxLength": 11,
"metadata": {
"description": "Globally unique DNS Name for the Public IP used to access the Virtual Machine."
}
}
},
"variables": {
"resourcePrefix": "[parameters('jenkinsDnsPrefix')]",
"storageAccountName": "[concat(parameters('jenkinsDnsPrefix'), uniquestring(resourceGroup().id))]",
"OSDiskName": "[concat(parameters('jenkinsDnsPrefix'), 'OSDisk')]",
"nicName": "[concat(parameters('jenkinsDnsPrefix'), 'VMNic')]",
"subnetName": "[concat(parameters('jenkinsDnsPrefix'), 'Subnet')]",
"publicIPAddressName": "[concat(parameters('jenkinsDnsPrefix'), 'PublicIP')]",
"resourcePrefix": "jenkins",
"storageAccountName": "[concat(variables('resourcePrefix'), uniquestring(resourceGroup().id))]",
"OSDiskName": "[concat(variables('resourcePrefix'), 'OSDisk')]",
"nicName": "[concat(variables('resourcePrefix'), 'VMNic')]",
"subnetName": "[concat(variables('resourcePrefix'), 'Subnet')]",
"publicIPAddressName": "[concat(variables('resourcePrefix'), 'PublicIP')]",
"vmStorageAccountContainerName": "vhds",
"vmName": "[concat(parameters('jenkinsDnsPrefix'), 'VM')]",
"virtualNetworkName": "[concat(parameters('jenkinsDnsPrefix'), 'VNET')]",
"frontEndNSGName": "[concat(parameters('jenkinsDnsPrefix'), 'NSG')]",
"vmName": "[concat(variables('resourcePrefix'), 'VM')]",
"virtualNetworkName": "[concat(variables('resourcePrefix'), 'VNET')]",
"frontEndNSGName": "[concat(variables('resourcePrefix'), 'NSG')]",
"_artifactsLocation": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/azure-jenkins/",
"_artifactsLocationSasToken": ""
},
Expand Down Expand Up @@ -85,20 +84,6 @@
"priority": 100,
"direction": "Inbound"
}
},
{
"name": "http-rule",
"properties": {
"description": "Allow HTTP",
"protocol": "Tcp",
"sourcePortRange": "*",
"destinationPortRange": "8080",
"sourceAddressPrefix": "Internet",
"destinationAddressPrefix": "*",
"access": "Allow",
"priority": 101,
"direction": "Inbound"
}
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion azure-jenkins/azuredeploy.parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"value": "GEN-PASSWORD"
},
"jenkinsDnsPrefix": {
"value": "GEN-UNIQUE-5"
"value": "GEN-UNIQUE"
}
}
}

0 comments on commit 4788eae

Please sign in to comment.