AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск Все разделы прочитаны

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 22.06.2021, 00:25   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
My first D365FO Build pipeline with Microsoft-hosted agent
Источник: http://alexvoy.blogspot.com/2021/06/...line-with.html
==============

This contains some particular details and explanatory images which can be useful while following the basic Microsoft article https://docs.microsoft.com/en-us/dyn...ild-automation

Thanks Joris for the NuGet packages and other colleagues for their help.

So, my goal is to create a Build pipeline for Version 18, and my deployable package must have a few ISV models, one of which is provided as libraries and source code.

Personal Access Token

First create or update your Personal Access Token and copy-paste it in a secure place (I mean Notepad++, of course). This will be used as a password for uploading Nuget packages to your Artifacts feed later.






Create a feed


Create nuget.config file and place it together with Nuget files as described in the next part.
NuGet packages

Get NuGet packages from LCS shared asset library.





Place these files in a special NuGet folder and create or update packages.config file.







Add them to the source controlled folder. DEV must be mapped too.







Publish packages by using the command line

Now open Windows command prompt to publish these Nuget files to your feed.





Use your Personal Access Token as a password.




Once uploading is done, you can check that the feed contains all packages.








Creating the pipeline

Before importing or creating a pipeline, install Azure DevOps pipeline tools Dynamics 365 Finance and Operations from Marketplace in your Extensions.





I export a pipeline from one organization and then import it to mine.




Then check and update the project name and relevant folder references, change variables and triggers, if needed.


Visual Studio build step


As one of my ISV provided in mix code/binaries mode, I need to reference its non X++-libraries at this step.





/p:ReferencePath A semicolon-separated list of paths that contain any non-X++ binaries that are referenced and required for compilation. You should include the location of the extracted Compiler Tools NuGet package, because it might contain required references.




So, once triggered it builds the solution, creates a deployable deployable package and publishes it.








Published artifacts can be found here.











Источник: http://alexvoy.blogspot.com/2021/06/...line-with.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
Старый 23.06.2021, 17:30   #2  
trud is offline
trud
Участник
Лучший по профессии 2017
 
1,038 / 1629 (57) ++++++++
Регистрация: 07.06.2003
Записей в блоге: 1
Спасибо за статью. А кстати этот способ работает для бесплатных подписок и сколько вообще будет стоить такой билд? Вроде что-то писали что бесплатные минуты билда отменили, так как на них стали майнить
Старый 28.06.2021, 17:17   #3  
vmoskalenko is offline
vmoskalenko
Участник
Аватар для vmoskalenko
 
145 / 334 (12) ++++++
Регистрация: 25.01.2007
Адрес: Toronto
Цитата:
Сообщение от trud Посмотреть сообщение
Спасибо за статью. А кстати этот способ работает для бесплатных подписок и сколько вообще будет стоить такой билд? Вроде что-то писали что бесплатные минуты билда отменили, так как на них стали майнить
Не отменили. Я сталкивался на одном проекте с таким. Там в ошибке явно видно что надо сделать. Можно немного погуглить текст ошибки и найти чудесные фекальные комментарии на эту тему.

Вобщем, в тексте ошибки указано что надо написать письмо на электронный адрес такой-то. В письме указать имя компании, веб сайт, телефон и пояснить чего вообще вы делаете такого. Написал. Включили через неделю.

Можно этого не делать, а платить 40 USD/mo за безлим минут. Это стоимость одной VM в Azure 24/7.

P.S.
Аристе недавно рассказывал как он начал тратить примерно 3 Евро/месяц на билд сервер. Он просто создаёт VM каждый раз когда надо из VHD-образа. Для ночных билдов с автоматическими тестами - отлично подходит. А для CI - слишком медленно.
За это сообщение автора поблагодарили: trud (2), wojzeh (1).
Старый 05.07.2021, 16:36   #4  
wojzeh is offline
wojzeh
Участник
Аватар для wojzeh
Соотечественники
 
672 / 512 (19) +++++++
Регистрация: 27.04.2006
Адрес: Montreal
Цитата:
Сообщение от vmoskalenko Посмотреть сообщение
надо написать письмо на электронный адрес такой-то. В письме указать имя компании, веб сайт, телефон и пояснить
всё так и было, только за два дня управились в моём случае
__________________
Felix nihil admirari
За это сообщение автора поблагодарили: vmoskalenko (5).
Теги
d365fo, devops

 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
axinthefield: Build automation through Azure Pipeline using Microsoft hosted Agent Blog bot DAX Blogs 0 27.03.2021 00:41
gustafwesterlund: Quickfind bug in 9.1.0.643 Blog bot Dynamics CRM: Blogs 0 21.11.2018 14:11
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 14 Blog bot Dynamics CRM: Blogs 0 12.07.2013 07:13
emeadaxsupport: Translated User Help on TechNet and downloadable New Features lists available! Blog bot DAX Blogs 0 31.01.2013 05:11
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 10 Blog bot Dynamics CRM: Blogs 0 17.08.2012 03:27
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 19:04.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.