问题描述
我真的是ADO的新手.我有一个用于ASP.NET Core网站的Git复制程序,并且已经建立了构建,正在尝试研究如何通过FTP将网站部署到我的托管服务器上.
我查看了
我尝试了"IIS网站和SQL数据库部署"模板,因为它看起来最有可能,但随后陷入下一阶段.我需要为它创建的三个任务填写一些设置,但是看起来这是直接发布到IIS的过程,而我想将文件通过FTP传输到服务器.
然后我尝试创建一个空白发行版,并向其中添加一个FTP上传任务.这看起来更有希望,但是我无法弄清楚如何运行它.成功构建后,它不会启动,我看不到任何手动运行它的选项.
管道显示未设置时间表...
...但是我看不到在哪里设置,或者如果我想要在构建后运行而不是按计划运行,甚至需要一个.
有人可以告诉我我应该怎么做吗?我只想要它,这样它就可以在成功构建后将部署文件复制到服务器.
如果要计划发布-单击屏幕快照中突出显示的时钟图标,如果要在发布后进行构建,请单击有点闪电的图标高于时钟图标,然后选择您感兴趣的触发器.
https://docs.microsoft.com/en-us/azure/devops/pipelines/release/triggers?view = azure-devops
I'm really new to ADO. I have a Git repro for an ASP.NET Core web site, and having set up a build, am trying to work out how to deploy the site to my hosting server via FTP.
I looked at the MSDN docs, but what they show there bears very little resemblance to what I see in my browser...
I tried the "IIS website and SQL database deployment" template, as that looked the most likely, but then got stuck at the next stage. I need to fill in some settings for the three tasks that it created, but it looks like this is for publishing direct to IIS, whereas I want to FTP the files to the server.
I then tried creating a blank release, and adding an FTP upload task to it. This looked more promising, but I couldn't work out how to run it. It doesn't fire after a successful build, and I can't see any option to run it manually.
The pipeline shows that it doesn't have a schedule set...
...but I can't see where to set one, or if I even need one as I want to run after a build, not to a timed schedule.
Can anyone tell me how I'm supposed to do this? I just want it so that it will copy the deployment files to the server after a successful build.
if you want a scheduled releases - click on the clock icon that you highlighted on the screenshot, if you want builds after releases click on the lightning icon that's a little higher than the clock icon and pick the trigger(s) you are interested in.
https://docs.microsoft.com/en-us/azure/devops/pipelines/release/triggers?view=azure-devops
这篇关于如何通过FTP从Azure DevOps释放到服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!