Matt Can Code  

https://dev.azure.com/mattyang0322/ 

user:matt.yang@commscope.com/Qazw1@34

Create a new project - 

 

 Create github repo using method defined in https://www.cnblogs.com/Mattcoder/news/2019/01/15/10270674.html

https://github.com/mattcoder2020/currency-exchange

 

 

 

 Create pipeline

 

 Soon after github repo was chosen,  because there are dockerfile existed in the repo,  configuration will add docker option, choose starter pipeline option instead

 

 

 

Queue up the task for commit 

 

Dispatch a worker node (ubuntu based) to checkout the code and commit to github

 

 

 

 

 At local pull the code and make changes and commit to git, pipelined job will be run automatically

PS E:\misc\devops-master-class-master\projects\microservices\01-currency-exchange-microservice-basic> git add *
PS E:\misc\devops-master-class-master\projects\microservices\01-currency-exchange-microservice-basic> git status
On branch main
Your branch is up to date with 'origin/main'.

Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

        modified:   01-first-azure-pipelines.yml

PS E:\misc\devops-master-class-master\projects\microservices\01-currency-exchange-microservice-basic> git commit -m "change pipeline"
[main 0142024] change pipeline
 1 file changed, 1 insertion(+), 1 deletion(-)

PS E:\misc\devops-master-class-master\projects\microservices\01-currency-exchange-microservice-basic> git push -u origin head:main
Username for 'https://github.com': mattcoder2013@yahoo.com
Password for 'https://mattcoder2013@yahoo.com@github.com':
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 304 bytes | 304.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
To https://github.com/mattcoder2020/currency-exchange.git
   897281d..0142024  head -> main
Branch 'main' set up to track remote branch 'main' from 'origin'.

WHy it is triggered automatically? the trigger element point to the main branch

 Use Release to gate activitiy within one pipeline, adding approval cycle, and release trigger

 

posted on 2026-01-17 11:14  Matt Yeung  阅读(0)  评论(0)    收藏  举报