首页 > 其他分享 >Azure Devops进行PowerPlatform Soluion版本管理

Azure Devops进行PowerPlatform Soluion版本管理

时间:2022-12-16 14:35:41浏览次数:43  
标签:pipeline git Power PowerPlatform Create Devops Solution Soluion Platform

1,先建好source存储的Repos

2,然后创建Pipeline或release pipeline都可以,创建方式有所不同,但后边设定job的地方是相同的

​(1)Pipeline创建点击New pipeline后要选择Use the classic editor to create a pipeline without YAML.

(2)release pipeline创建时,artifact的Source type要选Azure Repos Git

3,添加task,先安装PowerPlatform Build Tools,然后依次添加

(1)Power Platform Tool Installer 

(2)Power Platform Export Solution 

(3)Power Platform Unpack Solution 

(4)Command Line Script

※Power Platform Pack Solution可以把 Unpack Solution 再打包回zip包,不做恢复时可以不用

Azure Devops进行PowerPlatform Soluion版本管理_git

4,细节的补充

(1)选中Allow scripts to access the OAuth token

Azure Devops进行PowerPlatform Soluion版本管理_Power_02

(2)repos的security里把user的Contribute,Contribute to pull requests,Create branch,Create repository,Create tag这些权限都加上

Azure Devops进行PowerPlatform Soluion版本管理_Power_03

(3)建立连接时推荐用service principal,如果要用用户密码的话,创建连接类型为generic

Azure Devops进行PowerPlatform Soluion版本管理_Soluion_04

Azure Devops进行PowerPlatform Soluion版本管理_版本管理_05

(4)Command Line Script代码如下,先CD到你的Repos下,不然执行可能会报错

cd $(System.DefaultWorkingDirectory)/_AJKPOCREPOS

cd

echo Commit Power Platform Solution

git config user.email "[email protected]"

git config user.name "Build Pipeline"

git checkout main

git pull origin

git add --all

git commit -m "Automatic solution commit"

git -c http.extraheader="AUTHORIZATION: bearer $(System.AccessToken)" push origin main

(5)如果做其他环境导入的话,用Power Platform Import Solution 把导出的solution导入到其他环境就好

(6)使用releasepipelinge还可以做定期备份

Azure Devops进行PowerPlatform Soluion版本管理_git_06

标签:pipeline,git,Power,PowerPlatform,Create,Devops,Solution,Soluion,Platform
From: https://blog.51cto.com/u_15813130/5947426

相关文章

  • Auzre DevOps webhook
    目录概述实现web项目配置C#示例代码AzureDevops配置概述使用微软官方的类库(Microsoft.AspNet.WebHooks.Receivers)使用说明:https://docs.microsoft.com/en-us/asp......
  • 持续交付2.0 业务引领的DevOps精要
    背景从最初的瀑布模型,到后来的敏捷开发,再到今的DevOps,这是现代开发人员构建出色产品的技术路线。随着DevOps的兴起,出现了持续集成,持续交付(CI/CD)和持续部署的新方法,而......
  • 【实战】企业级持续集成(DevOps/TestOps自动化平台):git + gitlab + jenkins + pipeline
    为什么要写企业级持续集成(jenkins+pipeline+k8s)?目前网上自动化持续集成的资料很多,但基本上都是局限于jenkins自由风格的job,结合shell脚本来实现持续集成,这种方式的缺点......
  • 布客社区近日指明DevOps的三层含义和未来发展方向
    DevOps三层含义:运维自动化,写一系列反复使用的脚本来简化一遍一遍敲命令的操作。运维开发一体化,使运维或者交付和开发能够互换职责,人员能力更多面,流动更灵活。吸收并继......
  • Go DevOps大厂运维平台开发进阶实战营
    使用Jenkinsfile创建流水线已报名老男孩运维课,见底下评论。enkinsfile是一个文本文件,它包含Jenkins流水线的定义,并被检入源代码控制仓库。Jenkinsfile将整个工作流存......
  • Go语言Golang DevOps运维开发实战
    Go语言GolangDevOps运维开发实战提高运维意识。从下到上,从上到下的工作都要做好,对上运维工作的价值和含金量可以得到认可,对下我们的工作能够提高效率解放运维。运维意识......
  • 《Redis DevOps》二:API的理解和使用
    概述数据结构与内部编码优点:1)改进内部编码时,对外数据结构与命令无影响2)多种内部编码适配不同使用场景单线程架构单线程访问快速的原因:1)纯内存访问2)非阻塞IO,ep......
  • 《Redis DevOps》一:初识Redis
    初识Redis简介Redis(REmoteDictionaryServer)是一种基于键值对的NoSQL数据库,主要有string/hash/list/set/zset5种基本数据结构,字符串演变出bitmaps位图和HyperLogLog,3.2......
  • 【敏捷研发系列】前端DevOps流水线实践
    作者:胡骏一、背景现状软件开发从传统的瀑布流方式到敏捷开发,将软件交付过程中开发和测试形成快速的迭代交付,但在软件交付客户之前或者使用过程中,还包括集成、部署、运维......
  • 【敏捷研发系列】前端DevOps流水线实践
    作者:胡骏一、背景现状软件开发从传统的瀑布流方式到敏捷开发,将软件交付过程中开发和测试形成快速的迭代交付,但在软件交付客户之前或者使用过程中,还包括集成、部署、运维等环......