Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/ADOGenerator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,11 @@
.ExecuteAsync();
accessToken = result.AccessToken;
}
catch (MsalUiRequiredException)
catch (Exception ex)
{
var result = await authService.AcquireTokenAsync(app);
accessToken = result.AccessToken;
id.ErrorId().AddMessage($"Error: {ex.Message}");
}
}
else
Expand Down Expand Up @@ -263,6 +264,10 @@ bool ValidateExtensions(string templateFolderPath, string id)
}

var extensionsFile = File.ReadAllText(extensionsFilePath);
if(string.IsNullOrEmpty(extensionsFile))
{
return false;
}
var extensionjson = JObject.Parse(extensionsFile);
var extensions = extensionjson["Extensions"];
if (extensions == null)
Expand Down
5 changes: 5 additions & 0 deletions src/ADOGenerator/ServiceExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ public static void AddMessage(this string id, string message)
string fileName = $"{DateTime.Now.ToString("yyyy-MM-dd")}-{id}.txt";
if (id.EndsWith("_Errors"))
{
// Create Errors Log Directory if not exists
if (!Directory.Exists(Path.Combine(logFilePath, "Errors")))
{
Directory.CreateDirectory(Path.Combine(logFilePath, "Errors"));
}
// Create Log file
if (!File.Exists(Path.Combine(logFilePath, "Errors", fileName)))
{
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"parameters": {
"gitSource": {
"url": "https://github.com/jamcneil/mslearn-tailspin-spacegame-web",
"branch": "main"
},
"serviceEndpointId": "$mslearn-tailspin-spacegame-web-code$",
"deleteServiceEndpointAfterImportIsDone": true
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
},
"name": "Space Game - web-code",
"type": "git",
"url": "https://dev.azure.com/sharplogic/Space Game/_git/Space Game - web",
"url": "https://github.com/jamcneil/mslearn-tailspin-spacegame-web",
"authorization": {
"scheme": "UsernamePassword",
"parameters": {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"triggers": [
{
"branchFilters": [],
"pathFilters": [],
"settingsSourceType": 2,
"batchChanges": false,
"maxConcurrentBuildsPerBranch": 1,
"triggerType": "continuousIntegration"
}
],
"properties": {},
"tags": [],
"_links": "{}",
"jobAuthorizationScope": "projectCollection",
"jobTimeoutInMinutes": 60,
"jobCancelTimeoutInMinutes": 5,
"badgeEnabled": true,
"process": {
"yamlFilename": "azure-pipelines.yml",
"type": 2
},
"repository": {
"properties": {
"cloneUrl": "https://[email protected]/$Organization$/$ProjectName$/_git/mslearn-tailspin-spacegame-web-docker",
"fullName": "mslearn-tailspin-spacegame-web-docker",
"defaultBranch": "refs/heads/main",
"isFork": "False",
"safeRepository": "$mslearn-tailspin-spacegame-web-docker$",
"reportBuildStatus": "true",
"fetchDepth": "1"
},

"id": "$mslearn-tailspin-spacegame-web-docker$",
"type": "TfsGit",
"name": "mslearn-tailspin-spacegame-web-docker",
"url": "https://[email protected]/$Organization$/$ProjectName$/_git/mslearn-tailspin-spacegame-web-docker",
"defaultBranch": "refs/heads/main",
"clean": null,
"checkoutSubmodules": false
},
"quality": "definition",
"authoredBy": "{}",
"drafts": [],
"id": "",
"name": "mslearn-tailspin-spacegame-web-docker",
"url": "",
"uri": "",
"path": "\\",
"type": "build",
"queueStatus": "enabled",
"revision": 1,
"createdDate": "",
"project": "{}"
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"parameters": {
"gitSource": {
"url": "https://github.com/MicrosoftDocs/mslearn-tailspin-spacegame-web-docker"
},
"serviceEndpointId": "$tailspin-spacegame-web-docker-code$",
"deleteServiceEndpointAfterImportIsDone": true
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"data": {

},
"name": "tailspin-spacegame-web-docker-code",
"type": "git",
"url": "https://github.com/MicrosoftDocs/mslearn-tailspin-spacegame-web-docker",
"authorization": {
"scheme": "UsernamePassword",
"parameters": {
"username": "$username$",
"password": "$password$"
}
},
"isReady": true
}
Loading
Loading