AUTO IT EXE 将通过 Jenkins CI 工具执行 [英] AUTO IT EXE to be executed through Jenkins CI Tool

查看:29
本文介绍了AUTO IT EXE 将通过 Jenkins CI 工具执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 CI Jenkins 工具并尝试执行 AUTO IT Exe 文件.

I am using CI Jenkins Tool and trying to execute an AUTO IT Exe file.

我通过 Jenkins 尝试了以下选项,但没有任何效果.

I tried through Jenkins, with the following options, but nothing is working out.

  1. 执行命令行参数

  1. Execute command line arguments

批处理文件

蚂蚁文件

Windows 运行器插件

Windows runner plugin

推荐答案

通过 Jenkins 在从站上运行 AutoIt 将取决于从站的启动方式.由于您使用的是 AutoIt,因此您使用的是 Windows.Windows 从站不能通过 SSH 或 Windows 服务启动.您必须使用 JNLP Web State,并且必须以特定方式启动它,以便 AutoIt 正常工作.

Running AutoIt via Jenkins on a slave will depend on how the slave is launched. Since you're using AutoIt, you're using Windows. The Windows slave can NOT be started via SSH or via Windows Service. You MUST use JNLP Web State and you MUST start it in a particular way for AutoIt to work properly.

要让 AutoIt 工作,从站必须首先有一个用户登录并在桌面上.您可以手动执行此操作,也可以将 Windows 设置为在启动时自动登录.

To get AutoIt to work, the slave must first has a user logged in and at a desktop. You can do this manually, or set Windows to auto-login on startup.

进入桌面后,必须使用 JNLP Web 启动方法.这通常意味着通过curl从Jenkins服务器下载slave.jar,然后用slave启动java并指向Jenkins端的jnlp文件.最好,您希望通过调度程序自动执行此操作,但您也可以手动执行此操作.参见此处的示例:https://wiki.jenkins-ci.org/display/JENKINS/Launch+Java+Web+Start+slave+agent+via+Windows+Scheduler

Once at the desktop, the JNLP web start method must be used. This usually means downloading the slave.jar from the Jenkins server via curl, then launching java with the slave and pointing to the jnlp file on the Jenkins side. Preferably, you'll want to automate this via the Scheduler, but you can do it manually too. See here for an example: https://wiki.jenkins-ci.org/display/JENKINS/Launch+Java+Web+Start+slave+agent+via+Windows+Scheduler

一旦你以这种方式连接了从站,一个针对这个从站运行 AutoIt 的作业应该可以工作了.

Once you get the slave connected in this fashion, a job targeted at this slave that runs AutoIt should work.

注意:鉴于 AutoIt 的性质,您不能在主节点上运行它,因为主节点从来没有 AutoIt 需要的桌面访问权限.您可以在主节点上设置从代理来绕过限制.

NOTE: Given the nature of AutoIt, you can't run it on the master node because the master node never has desktop access that AutoIt needs. You can setup a slave agent on the master node to get around the limitation.

这篇关于AUTO IT EXE 将通过 Jenkins CI 工具执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆