简体   繁体   English

詹金斯在建立命令时出错?

[英]Jenkins error on building command?

I am new to Jenkins, starting now. 从现在开始,我是詹金斯的新手。 I see the following errors here. 我在这里看到以下错误。

Building in workspace /var/lib/jenkins/workspace/GIF_DECODER
[GIF_DECODER] $ /bin/bash /tmp/hudson3370393570271110742.sh
/tmp/hudson3370393570271110742.sh: line 2: cd: /home/joshis1/Data/E-Drive/Blog/Ready_to_post/Ubuntu/GIF_Decoder_LINUX: Permission denied
/var/lib/jenkins/workspace/GIF_DECODER

I have given the build commands as the following. 我给出了以下构建命令。 This is under execute shell. 这是在执行外壳下。

#!/bin/bash
cd /home/joshis1/Data/E-Drive/Blog/Ready_to_post/Ubuntu/GIF_Decoder_LINUX 
pwd
make clean
make everything

I am not understanding what is the issue here? 我不明白这是什么问题? Looks to be a permission year. 看起来是许可年。 I have jenkins in sudoers list. 我的名单上有詹金斯人。 I don't why it looks for /var/lib/jenkins/workspace/GIF_Decoder. 我不为什么要查找/ var / lib / jenkins / workspace / GIF_Decoder。

I see the jenkins page under - http://:8080/job/GIF_DECODER/configure 我在下面看到了詹金斯页面-http://:8080 / job / GIF_DECODER / configure

How can I setup the hostname so that instead of localhost I have some meaningful name? 如何设置主机名,以便使用有意义的名称代替localhost? Please help. 请帮忙。 Also, what is the best document/video to start with Jenkins for linux users? 另外,对于Linux用户,从Jenkins开始的最佳文档/视频是什么? How to debug Jenkins issue seen? 如何调试Jenkins看到的问题? How can I instantiate a build by sending an email? 如何通过发送电子邮件实例化构建?

I am not understanding what is the issue here? 我不明白这是什么问题? It's a permission error. 这是一个权限错误。 It looks like your jenkins user does not have permissions for /home/joshis1/Data/E-Drive/Blog/Ready_to_post/Ubuntu/GIF_Decoder_LINUX 您的jenkins用户似乎没有权限/home/joshis1/Data/E-Drive/Blog/Ready_to_post/Ubuntu/GIF_Decoder_LINUX

How can I setup the hostname so that instead of localhost I have some meaningful name? 如何设置主机名,以便使用有意义的名称代替localhost? Try the hostname of your server in the URL. 在URL中尝试服务器的主机名。 eg http://myserver:8080/job/GIF_DECODER/configure 例如http://myserver:8080/job/GIF_DECODER/configure

Also, what is the best document/video to start with Jenkins for linux users? 另外,对于Linux用户,从Jenkins开始的最佳文档/视频是什么? I expect that you have a basic understanding of how linux works. 我希望您对linux的工作原理有基本的了解。 This is important on how to configure your jenkins and write the necessary build steps. 这对如何配置您的詹金斯和编写必要的构建步骤很重要。 The most basic information you will find on http://jenkins-ci.org and basic installation https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins 您可以在http://jenkins-ci.org和基本安装https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins上找到最基本的信息

How to debug Jenkins issue seen? 如何调试Jenkins看到的问题? That depends ... ... on the issue. 这取决于……问题。 If you have build problems check the console output of the job first. 如果您有构建问题,请首先检查作业的控制台输出。 In addition, Jenkins writes its logfiles into the jenkins home directory. 另外,Jenkins将其日志文件写入jenkins主目录。

How can I instantiate a build by sending an email? 如何通过发送电子邮件实例化构建? Check out the mail commander plugin 查看邮件指挥官插件

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

相关问题 在Linux centos平台上使用Jenkins和Gradle构建Android应用时出错 - Error while Building Android Apps with Jenkins and Gradle on linux centos platform 找不到Sudo命令(Jenkins execute Shell中的错误) - Sudo command not found (error in Jenkins execute shell) npm install命令可以以root用户身份正常运行,但是如果以jenkins用户身份执行命令则抛出错误 - npm install command works fine as root user but throws error if command is executed as jenkins user 詹金斯:Appium:找不到命令 - Jenkins: Appium: Command not found Jenkins 在构建作业时忽略代理设置 - Jenkins ignores proxy settings while building a job 使用 Jenkins 构建应用程序时通过 ssh 连接 - Connecting via ssh when building app with Jenkins lstate错误:使用Docker构建命令从自定义映像构建Docker时没有这样的文件或目录 - lstate error: no such file or directory while building Docker from a custom image with Docker build command 在 Fedora 28 上构建 Linux 内核时如何避免“无效命令”错误? - How to avoid 'invalid command' error when building Linux kernel on Fedora 28? 当我运行 Jenkins 阶段时,sh 命令给出“[[: not found ”错误 - sh command giving “[[: not found ” error when I am running through Jenkins stage Jenkins 执行 bash shell 命令 - Jenkins execute bash shell command
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM