Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
ms-extern-ci
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
ms-extern-ci
Commits
93cbe504
There was an error fetching the commit references. Please try again later.
Commit
93cbe504
authored
3 years ago
by
Recolic K
Browse files
Options
Downloads
Patches
Plain Diff
.
parent
a61aa815
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Azure-Deployment-Builder/guest-build.sh
+2
-1
2 additions, 1 deletion
Azure-Deployment-Builder/guest-build.sh
ControlPlane/guest-build.sh
+29
-0
29 additions, 0 deletions
ControlPlane/guest-build.sh
ControlPlane/host-daemon.fish
+57
-0
57 additions, 0 deletions
ControlPlane/host-daemon.fish
with
88 additions
and
1 deletion
Azure-Deployment-Builder/guest-build.sh
+
2
−
1
View file @
93cbe504
...
@@ -30,7 +30,8 @@ echo START pack
...
@@ -30,7 +30,8 @@ echo START pack
rm
-f
~/build-output/net472/
*
.pdb
&&
rm
-f
~/build-output/net472/
*
.pdb
&&
cp
Workflows/
*
.xaml ~/build-output/net472/
&&
cp
Workflows/
*
.xaml ~/build-output/net472/
&&
zip build-output.zip ~/build-output/net472/
**
zip build-output.zip ~/build-output/net472/
**
||
exit
$?
echo
DONE
echo
DONE
...
...
This diff is collapsed.
Click to expand it.
ControlPlane/guest-build.sh
0 → 100755
+
29
−
0
View file @
93cbe504
#!/bin/bash
# This script runs on guest, build the proj
nuget_uname
=
"
$1
"
nuget_pswd
=
"
$2
"
cd
/buildroot/repo
||
exit
$?
#######################################
echo
START
sync
dotnet nuget add
source
"https://msazure.pkgs.visualstudio.com/_packaging/Official/nuget/v3/index.json"
--name
MSAZ
--username
"
$nuget_uname
"
--password
"
$nuget_pswd
"
--store-password-in-clear-text
&&
dotnet nuget add
source
"https://o365exchange.pkgs.visualstudio.com/_packaging/Common/nuget/v3/index.json"
--name
O365Core
--username
"
$nuget_uname
"
--password
"
$nuget_pswd
"
--store-password-in-clear-text
&&
dotnet nuget add
source
"https://skype.pkgs.visualstudio.com/DefaultCollection/_packaging/csc/nuget/v3/index.json"
--name
Skype
--username
"
$nuget_uname
"
--password
"
$nuget_pswd
"
--store-password-in-clear-text
&&
dotnet nuget add
source
"https://o365exchange.pkgs.visualstudio.com/959adb23-f323-4d52-8203-ff34e5cbeefa/_packaging/M365FleetAGC/nuget/v3/index.json"
--name
M365FleetAGC
--username
"
$nuget_uname
"
--password
"
$nuget_pswd
"
--store-password-in-clear-text
&&
openxt
sync
--local-repo-dir
~/nuget-local-repo
--project-dir
sources/dev/FleetAGC/src
||
exit
$?
#######################################
echo
START build AzureToolkit
mv
sources/dev/FleetAGC/src/AzureToolKit ~
&&
cd
~/AzureToolKit
&&
source
<
(
openxt
env
--local-repo-dir
~/nuget-local-repo
--project-dir
.
--bin-dir
~/build-output
--shell
bash
)
&&
csproj-to-5
*
.csproj
&&
dotnet pack
||
exit
$?
echo
DONE
This diff is collapsed.
Click to expand it.
ControlPlane/host-daemon.fish
0 → 100644
+
57
−
0
View file @
93cbe504
#!/usr/bin/fish
# daemon on host
# Should have permission to clone repo, read repo, download nuget package.
# Personal-Access-Token, allow all read-only access.
set devops_uname bensl
set devops_pswd (cat /home/recolic/scripts/ms-passwords/devops-password)
# Using GNU grep, allow basic regex. (I assume nobody place SPACE and origin/ in his branch name. )
set triggers master 'u/recolic/.*'
set tmpf /tmp/ms-externci-controlplane
test $devops_pswd = "" ; and echo "Please set devops_password" ; and exit 1
function dobuild
set build_tag $args[1]
sudo docker run -ti --rm -v (pwd)/..:/buildroot recolic/openxt bash /buildroot/guest-build.sh $devops_uname $devops_pswd
end
test -d repo
or git clone https://$devops_uname:$devops_pswd@o365exchange.visualstudio.com/DefaultCollection/O365%20Core/_git/ControlPlane repo
cd repo
dobuild
while true
# No error-crash in the loop.
git fetch 2>&1 > $tmpf
git reset --hard "@{upstream}"
# dirty string processing
for niddle in triggers
# Each line in the hit, means a updated branch need to be built.
for line in (cat $tmpf | grep -E "origin/$niddle"'( |$)')
set hit_brname (echo $line | sed 's/^.* origin\///g' | sed 's/ .*$//g')
git checkout $hit_brname ; or continue
set curr_hash (echo $line | sed 's/^[^\.]*\.\.\.*//g' | sed 's/ .*$//g')
if test $curr_hash = ""
# new branch
set curr_hash (git rev-parse --short HEAD)
end
dobuild $hit_brname:$curr_hash
end
end
sleep 10m
end
# * [new branch] u/liuyong/cmdletToCreateAccountAdmin -> origin/u/liuyong/cmdletToCreateAccountAdmin
# + 35d9e4838c6...5322513e658 u/qingche/AddModels0525 -> origin/u/qingche/AddModels0525 (forced update)
# f9b0bf716bb..d2283f560b7 u/ricardoo/SyncDeploymentParterClusterAndAzureDbWorkflowBulkInsert -> origin/u/ricardoo/SyncDeploymentParterClusterAndAzureDbWorkflowBulkInsert
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment