繁体   English   中英

Jenkins与Git Hub集成时如何给出项目路径

[英]How to given Project Path if Jenkins Integration with Git Hub

下面是要从Jenkins计划的自动构建的命令行执行。

cd C:\Users\3020722\Downloads\Katalon_Studio_Windows_64-5.3.0
katalon.exe  -runMode=console -projectPath="C:\Users\3020722\Katalon_Studio\PoC\PoC.prj" -retry=0 -testSuitePath="Test Suites/POCTestSuite" -browserType="IE"

我需要从gitHub中获取最新项目...命令行执行的工作流程如何。

1. Clone Project in to local directory 
2. Use that directory in the command line execution

首先是这种情况,它需要克隆到总是本地路径(预定义)中并且需要给出该路径。 能否让我知道gitHub到Jenkins的工作流程

谢谢

您可以使用Jenkins的WORKSPACE变量: https : //wiki.jenkins.io/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-belowJenkinsSetEnvironmentVariables

只需将其直接放入Katalon Studio命令中,Jenkins便会自动对其进行解析,例如:

katalon.exe  -runMode=console -projectPath="%WORKSPACE%\PoC.prj" -retry=0 -testSuitePath="Test Suites/POCTestSuite" -browserType="IE"

暂无
暂无

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

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