Skip to content
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
3 changes: 2 additions & 1 deletion .github/AL-Go-Settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@
"main",
"releases/*"
],
"rulesetFile": "..\\..\\Build\\Rulesets\\module.ruleset.json"
"rulesetFile": "..\\..\\Build\\Rulesets\\module.ruleset.json",
"skipUpgrade": true
}
7 changes: 7 additions & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# AL-Go files and build scripts are owned by Engineering Systems
.AL-Go/ @microsoft/dynamics-smb-engineering-systems
*.ps1 @microsoft/dynamics-smb-engineering-systems
/.azuredevops @microsoft/dynamics-smb-engineering-systems
/.github @microsoft/dynamics-smb-engineering-systems
/Build @microsoft/dynamics-smb-engineering-systems
/CODEOWNERS @microsoft/dynamics-smb-engineering-systems
34 changes: 34 additions & 0 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<#
.Synopsis
Build script for AL-Go projects
.Description
This script will run localDevEnv.ps1 in the specified AL-Go project
.Parameter ALGoProject
The name of the AL-Go project
.Parameter InsiderSasToken
The SAS token to use for downloading insider builds
.Parameter AutoFill
If specified, the script will generate a random password and use that for the credential
.Example
.\build.ps1 -ALGoProject "System Application"
.\build.ps1 -ALGoProject "Test Stability Tools" -AutoFill
#>
param
(
[Parameter(Mandatory=$true)]
[string] $ALGoProject,
[string] $InsiderSasToken = "",
[switch] $AutoFill
)

if ($AutoFill) {
Add-Type -AssemblyName System.Web

$credential = New-Object pscredential admin, (ConvertTo-SecureString -String ([System.Web.Security.Membership]::GeneratePassword(20, 5)) -AsPlainText -Force)
$licenseFileUrl = 'none'
$containerName = "bcserver"
$auth = "UserPassword"
}

$scriptPath = Join-Path $PSScriptRoot "$ALGoProject\.AL-Go\localDevEnv.ps1" -Resolve
& $scriptPath -containerName $containerName -auth $auth -credential $credential -licenseFileUrl $licenseFileUrl -insiderSasToken $InsiderSasToken