如何通过FTP从Azure DevOps释放到服务器?

编程入门 行业动态 更新时间:2024-10-28 03:21:11
本文介绍了如何通过FTP从Azure DevOps释放到服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我真的是ADO的新手.我有一个用于ASP.NET Core网站的Git复制程序,并且已经建立了构建,正在尝试研究如何通过FTP将网站部署到我的托管服务器上.

我查看了

我尝试了"IIS网站和SQL数据库部署"模板,因为它看起来最有可能,但随后陷入下一阶段.我需要为它创建的三个任务填写一些设置,但是看起来这是直接发布到IIS的过程,而我想将文件通过FTP传输到服务器.

然后我尝试创建一个空白发行版,并向其中添加一个FTP上传任务.这看起来更有希望,但是我无法弄清楚如何运行它.成功构建后,它不会启动,我看不到任何手动运行它的选项.

管道显示未设置时间表...

...但是我看不到在哪里设置,或者如果我想要在构建后运行而不是按计划运行,甚至需要一个.

有人可以告诉我我应该怎么做吗?我只想要它,这样它就可以在成功构建后将部署文件复制到服务器.

解决方案

如果要计划发布-单击屏幕快照中突出显示的时钟图标,如果要在发布后进行构建,请单击有点闪电的图标高于时钟图标,然后选择您感兴趣的触发器.

docs.microsoft/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.

docs.microsoft/en-us/azure/devops/pipelines/release/triggers?view=azure-devops

更多推荐

如何通过FTP从Azure DevOps释放到服务器?

本文发布于:2023-11-14 18:55:56,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1588263.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:服务器   FTP   Azure   DevOps

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!