Skip to content

Commit 95d91b4

Browse files
authored
Cuts over to main in build configuration & docs (#2726)
Should allow new release builds to be created from `main`. Also updates docs and scripts to refer to the main branch.
1 parent ecdf46c commit 95d91b4

14 files changed

Lines changed: 28 additions & 168 deletions

File tree

.vsts/common/build-vars.ps1

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,16 @@ $distTag = "latest"
1010

1111
Write-Host "Branch is $branch"
1212

13-
If ($branch -like "refs/heads/master") {
13+
If ($branch -like "refs/heads/main") {
1414
$buildType = "insider"
15-
$distTag = "latest"
15+
$distTag = "insider"
1616
}
1717

1818
If ($branch -like "refs/heads/stable") {
1919
$buildType = "stable"
2020
$distTag = "stable"
2121
}
2222

23-
If ($branch -like "refs/heads/vnext") {
24-
$buildType = "vnext"
25-
$distTag = "next"
26-
}
27-
28-
# TEMPORARY (2023-02-09): This is to support the transition from vnext to main.
29-
# Eventually, the distribution pipeline on the main branch will create:
30-
#
31-
# - A BatchExplorer insider build (buildType = "insider")
32-
# - NPM packages with the latest tag (distTag = "latest")
33-
#
34-
# In the next phase, the `vnext` branch will be removed and the above condition
35-
# can be removed as well. In a subsequent phase, the `master` branch will be
36-
# deprecated, at which point the `master` condition above will also be removed.
37-
If ($branch -like "refs/heads/main") {
38-
$buildType = "vnext"
39-
$distTag = "next"
40-
}
41-
4223
# Change to curent branch for testing
4324
If ($branch -like "refs/heads/feature/signing-vsts") {
4425
$buildType = "testing"

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## Pull request message format
66

7-
Use a good description for the title(i.e. not just `Merge feature/awesome-stuff in master`)
7+
Use a good description for the title(i.e. not just `Merge feature/awesome-stuff in main`)
88
If applicable please use the `fix #[issue number]` in the pull request description
99

1010
e.g.

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# BatchExplorer
22

33
[![VSTS Build Status](https://dev.azure.com/azurebatch/BatchExplorer/_apis/build/status/BatchExplorer%20-%20CI)](https://dev.azure.com/azurebatch/BatchExplorer/_build/latest?definitionId=8)
4-
[![codecov](https://codecov.io/gh/Azure/BatchExplorer/branch/master/graph/badge.svg)](https://codecov.io/gh/Azure/BatchExplorer)
4+
[![codecov](https://codecov.io/gh/Azure/BatchExplorer/branch/main/graph/badge.svg)](https://codecov.io/gh/Azure/BatchExplorer)
55

66
Batch Explorer is a tool to manage your Azure Batch accounts. The goal is to implement a great user experience that will help you debug, monitor and manage your pools, jobs and tasks.
77
It will also include experimental features such as `Batch Templates` in the aim to improve your Batch experience. We are open to any feedback, ideas and contributions you might have.

desktop/scripts/azpipelines/utils.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ export function getContainerName(buildType: string): string {
2727
return "stable";
2828
case "insider":
2929
return "insider";
30-
case "vnext": // See comment in .vsts/common/build-vars.ps1
31-
return "vnext";
3230
default:
3331
return "test";
3432
}

desktop/scripts/install/install-windows.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ function confirm-branch() {
5252

5353
if($current_branch -eq "stable") {
5454
add-success "Building from stable branch."
55-
} elseif ($current_branch -eq "master") {
56-
add-success "Building from master branch."
55+
} elseif ($current_branch -eq "main") {
56+
add-success "Building from main branch."
5757
} else {
5858
add-warning "Building from $current_branch branch it might not be stable."
5959
}

desktop/scripts/package/package-utils.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,8 @@ export enum BuildType {
1313
Dev = "dev",
1414
// Official build release
1515
Stable = "stable",
16-
// Build off master
17-
Insider = "insider",
18-
// Temporary until shared-libraries are merged
19-
// (see comment in .vsts/common/build-vars.ps1)
20-
Vnext = "vnext"
16+
// Build off main branch
17+
Insider = "insider"
2118
}
2219

2320
export const version = computeVersion();

desktop/scripts/proxy/proxy-server.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ resource proxyServerExtensions 'Microsoft.Compute/virtualMachines/extensions@201
9696
protectedSettings: {
9797
commandToExecute: 'sh initProxyServer.sh ${proxyPort}'
9898
fileUris: [
99-
'https://raw.githubusercontent.com/Azure/BatchExplorer/master/scripts/proxy/initProxyServer.sh'
99+
'https://raw.githubusercontent.com/Azure/BatchExplorer/main/scripts/proxy/initProxyServer.sh'
100100
]
101101
}
102102
}

desktop/scripts/proxy/virtual-machine.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ resource windowsVMExtensions 'Microsoft.Compute/virtualMachines/extensions@2020-
8686
autoUpgradeMinorVersion: true
8787
protectedSettings: {
8888
fileUris: [
89-
'https://raw.githubusercontent.com/Azure/BatchExplorer/master/scripts/proxy/initVirtualMachine.ps1'
89+
'https://raw.githubusercontent.com/Azure/BatchExplorer/main/scripts/proxy/initVirtualMachine.ps1'
9090
]
9191
commandToExecute: 'powershell -ExecutionPolicy Bypass -File initVirtualMachine.ps1 -Address ${proxyServer} -Port ${proxyPort} -Build ${batchExplorerBuild}'
9292
}

desktop/scripts/publish/github-api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ export async function createIssue(repo: string, title: string, description: stri
3737
});
3838
}
3939

40-
export async function listPullRequests(repo: string, source: string, target = "master"): Promise<Issue[]> {
40+
export async function listPullRequests(repo: string, source: string, target = "main"): Promise<Issue[]> {
4141
const url = `${pullRequestsUrl(repo)}?head=Azure:${source}&base=${target}`;
4242
return get(url);
4343
}
4444

45-
export async function createPullRequest(repo: string, title: string, body: string, source: string, target = "master") {
45+
export async function createPullRequest(repo: string, title: string, body: string, source: string, target = "main") {
4646
return post(pullRequestsUrl(repo), {
4747
title,
4848
body,

desktop/scripts/publish/publish.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
createIssue, createPullRequest, getMilestone, githubToken, listMilestoneIssues, listPullRequests,
88
} from "./github-api";
99

10-
const MAIN_BRANCH = "master";
10+
const MAIN_BRANCH = "main";
1111

1212
const root = path.resolve(path.join(__dirname, "../.."));
1313
const allMessages: string[] = [];
@@ -54,7 +54,7 @@ function checkGithubToken() {
5454
}
5555

5656
/**
57-
* This goes back to master and pull
57+
* This goes back to the main branch and pulls the latest
5858
*/
5959
async function gotoMainBranch() {
6060
await run(`git checkout ${MAIN_BRANCH}`);

0 commit comments

Comments
 (0)