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

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

问题描述

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

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

我通过以下方法尝试了詹金斯,但没有任何进展.

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

  1. 执行命令行参数

  1. Execute command line arguments

批处理文件

ant文件

Windows运行程序插件

Windows runner plugin

推荐答案

在奴隶上通过Jenkins运行AutoIt取决于奴隶的启动方式.由于您使用的是AutoIt,因此您使用的是Windows. Windows从站无法通过SSH或Windows服务启动.您必须使用JNLP Web状态,并且必须以特定方式启动它才能使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文件.最好是,您希望通过Scheduler自动执行此操作,但也可以手动执行.参见此处的示例: 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.

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

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