简体   繁体   English

将应用程序工件部署到Web服务器

[英]Deploying application artifacts to web servers

I've been working on deployment automation. 我一直在进行部署自动化。 Major challenge am facing is copying the files from Jenkins to servers. 面临的主要挑战是将文件从Jenkins复制到服务器。 Artifacts are present in workspace of the deployment job but I am not knowing how to deploy them by taking input parameters as userid and password. 工件存在于部署作业的工作空间中,但是我不知道如何通过将输入参数作为用户标识和密码来部署它们。 Since same job is used by release team and they only have access to production servers. 由于发布团队使用相同的工作,因此他们只能访问生产服务器。 I've searched online but seems there are not many articles for this common scenario. 我已经在网上搜索过,但似乎没有很多关于这种常见情况的文章。 Can anyone suggest how this can be achieved without using tools such as puppet, preferably batch script or power shell script. 谁能建议不使用诸如木偶之类的工具(最好是批处理脚本或Power Shell脚本)来实现此目标。

I recommend looking at the Jenkins SCP plugin: https://wiki.jenkins-ci.org/display/JENKINS/SCP+plugin 我建议看一下Jenkins SCP插件: https : //wiki.jenkins-ci.org/display/JENKINS/SCP+plugin

I haven't used it myself, but since you mentioned PowerShell, there is a Jenkins PowerShell plugin: https://wiki.jenkins-ci.org/display/JENKINS/PowerShell+Plugin 我没有亲自使用过,但是自从您提到PowerShell以来,就有一个Jenkins PowerShell插件: https : //wiki.jenkins-ci.org/display/JENKINS/PowerShell+Plugin

The PublishOver plugin looks useful as well: https://wiki.jenkins-ci.org/display/JENKINS/Publish+Over PublishOver插件看起来也很有用: https ://wiki.jenkins-ci.org/display/JENKINS/Publish+Over

Alternatively you can run any arbitrary shell command using Jenkins shell script build step. 或者,您可以使用Jenkins Shell脚本构建步骤运行任何任意Shell命令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM