[英]Jenkins to Linux Issues - Python File execution
I am quite new to linux set up and I am finding it really tough to make my jenkins machine talk to a python program residing in a linux server.我对 linux 设置非常陌生,我发现让我的 jenkins 机器与驻留在 ZE08650CC 服务器中的 python 程序对话非常困难。 Here are the details:以下是详细信息:
In the Jenkins Job configuration I have written the below code:在 Jenkins 作业配置中,我编写了以下代码:
#! /usr/local/bin python3
python3 /filenet/EFBI/Scripts/Test_Scripts/add.py
When this gets executed receiving a error:当执行此操作时收到错误:
started by user Jenkins Admin User
Running as System
Building in workspace /jenkins/jenkins_fmlvlm0000/jenkins2_176/Jenkins_Home/Workspace/PythonTest
[PythonTest] $ /usr/local/bin python3 /jenkins/jenkins_fmlvlm0000/jenkins2_176/apache-tomcat-9.0.20/temp/jenkins123456789.sh
FATAL : command execution failed
java.io.IOException: error=13, Permission Denied
....
....
....
....
caused: java.io.IOException: cannot run program "/usr/local/bin" (in directory "/jenkins/jenkins_fmlvlm0000/jenkins2_176/Jenkins_Home/Workspace/PythonTest"): error=13, Permission Denied
Now I have below questions:现在我有以下问题:
The issue is resolved now.现在问题已经解决了。 We had to create a slave node and then in the linux machine create a worker folder for the agent to work.我们必须创建一个从节点,然后在 linux 机器上创建一个工作文件夹以供代理工作。
And then in the set up create the same user ID and password through which we are logging into to linux machine and then provide required SSH permission to make it work.然后在设置中创建与我们登录到 linux 机器相同的用户 ID 和密码,然后提供所需的 SSH 权限以使其工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.