更新时间:2023-12-05 18:33:46
对于那些有相同问题的人,解决方案是以管理员身份启动Jenkins. 为此:
For those who have the same problem, the solution is start Jenkins as administrator. To do this :
1)以管理员身份打开提示命令
1) open a prompt command as administrator
开始/配件/
start/accessories/
然后右键单击提示命令,然后选择启动为
Then right click on prompt command and choose start as
2)转到Jenkins目录
2) go to Jenkins directory
cd/D C:\ Program Files \ Jenkins
cd /D C:\Program Files\Jenkins
3)启动Jenkins服务器
3) start Jenkins Server
java -jar jenkins.war --httpPort = 8081而不是8080
java -jar jenkins.war --httpPort=8081 not 8080
等到服务器运行,此行将出现INFO:Jenkins已完全启动并正在运行
wait until the sever is running this line will appear INFO:Jenkins is fully up and running
现在Jenkins服务器正在以管理员身份运行
now the Jenkins server is running as administrator
4)打开您的网络浏览器,然后转到
4)open your web browser and go to
http://://localhost:8081
http ://localhost:8081
5)创建工作!!
要知道工作区在哪里,只需创建一个新的批处理脚本并添加命令行
to know where is the workspace just create a new batch script add the command line
cd
保存并构建作业.接下来转到控制台,只需阅读路径
save and build the job. Next go to the console and just read the path