当grunt在命令提示符下运行时,如何解决jenkins上的Grunt无法识别错误?
Jenkins输出:
test cases will be executed
'grunt' is not recognized as an internal or external command, operable program or batch file.
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE
我刚刚下载了Xcode 8,做了一些设置更改并尝试使用Jenkins构建,但是它失败了,并出现了以下错误:
The following build commands failed:
CompileSwift normal arm64 /Users/ujenkins/ujenkins/workspace/project-ios/XXXXX/Views/Timeline/Components/Transitions/CustomTransition.swift
CompileSwift normal arm64 /Users/ujenkins/ujenkins/workspace/proj
我正在设置一个部署服务器。我安装了码头,并使用由docker-composer.yaml生成的phpdocker.io运行码头容器。我还安装了詹金斯。所有设置都在EC2实例上。一切都很完美。
在推动github中的master时,jenkins需要在EC2实例中执行一些命令。当我试图安装composer依赖项时,会出现以下错误:
docker-compose exec php-fpm composer install
Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?
我在jenkins中执行bash脚本时遇到了问题。我检查了shell命令,我的输入如下:
rvm use jruby-1.7.4
export JRUBY_OPTS=--1.8
jruby -S cucumber
仅供参考:这3个命令正是我在Jenkins之外启动cucumber时在终端中输入的命令。
当我执行这些命令时,这是我的输出
[workspace] $ /bin/sh -xe /home/nwssc/apache-tomcat-7.0.40/temp/hudson7305254619895710829.sh
+ rvm use jruby-1.7.4
RVM is not a fun
当我试图从我的机器上运行一个示例jenkins项目的时候。然而,我不会在本地建立我的项目。
我概述了设置的
我做错什么了?我应该用什么具体步骤来解决这个问题。
来自jenkins的错误消息
Started by user Jacqueline George
Building in workspace /Users/jacquelinegeorge/.jenkins/$(JENKINS_HOME)/LocatorTraining
[LocatorTraining] $ cmd /c call /var/folders/2s/d8lh31wd3_7dx65htqzvpcv80000gn/T/jen
当构建准备好时,我有几个需要执行的shell命令。在Jenkins中,我创建了一个带有执行shell选项的Freestyle项目:
#!/bin/sh
cd /path to kafka folder
bin/zookeeper-server-start.sh config/zookeeper.properties &
bin/kafka-server-start.sh config/server.properties &
cd /path to elasticsearch
bin/elasticsearch
我可以从本地文件执行这个shell命令,但不能通过Jenkins执行
Jenkins在完成测试执行后给出了以下内容:
发送到下列无效地址时出错:有效电子邮件to
jenkins构建日志:
Build step 'Execute shell' marked build as failure
Email was triggered for: Failure
Sending email for trigger: Failure
Sending email to: valid emailid
Error sending to the following INVALID addresses : valid emailid
Finished: F
在通过jenkins为我的django项目设置部署时,我遇到了必须重新启动apache2服务才能将新的更改反映到客户端的问题。运行systemctl reload apache2.service命令后,我不确定如何提供用户密码。
我尝试了下面的选项,但没有成功。
1) systemctl reload apache2.service
结果:
Failed to reload apache2.service: Interactive authentication required.
See system logs and 'systemctl status apache2.service
我有一个Jenkins服务器在运行,并且有几个构建都在工作。然而,今天早上,当我尝试添加另一个时,它仍然失败,并出现错误-
[test.gov] $ /bin/sh -xe /tmp/hudson7055290339554583413.sh + ./opt/jenkins/build.sh /tmp/hudson7055290339554583413.sh: line 2: /opt/jenkins/build.sh: No such file or directory Build step 'Execute shell' marked build as failure
she
我正在尝试从jenkins和this运行webdriverio测试。我为jenkins安装了nodeJS插件,并在全局工具配置下,为NodeJS添加了一个名称和安装目录/usr/local/bin (节点可执行文件位于此文件夹中) 在Jenkins的项目配置中,在build environment下,我检查了 Provide Node & npm bin/ folder to PATH并选择上一步中的节点安装名称 但是,当我尝试运行npm install npm test时,通过在Build下的execute shell下添加这些命令并构建它,我收到了这个错误 Building in
我正在尝试使用运行该文件
当我运行时,出现错误:
FailedConsole Output
Started by user anonymous
[EnvInject] - Loading node environment variables.
Building in workspace C:\Users\*****\.hudson\jobs\dfs\workspace
[workspace] $ cmd /c call C:\apache-tomcat-7.0.63\temp\hudson5830491027958954227.bat
C:\Users\*****\.hudson\jobs
我试图通过Jenkins执行一个脚本,但是得到了下面的错误。
17:11:49 Started by user jenkins_admin
17:11:49 Running as SYSTEM
17:11:49 Building in workspace /Users/it/.jenkins/workspace/pla
17:11:49 [pla] $ /bin/sh -xe /var/folders/t2/sk1vw_mn7mz7ncjw75lzh7r40000gn/T/jenkins414219605931315887.sh
17:11:49 + export PYTHONPATH=:/U
我将Jenkins作为一个码头容器运行,并已安装了,并完全按照设置说明执行。当我尝试使用node运行脚本时,我会得到以下错误:
/tmp/jenkins9123978873441132802.sh: line 1: node: not found
Build step 'Execute shell' marked build as failure
Finished: FAILURE
我检查了坞卷,node bin是它应该在的地方,并且是可执行的,当我从我的主机服务器运行它时,它工作得很好:
user@server:/data/jenkins/tools/jenkins.plug
对于Jenkins For Controller和Agent配置,从前者到后者的连接按预期工作。
代理是Ubuntu 18,它通过.tar.gz和.zip文件手动安装了Java、Maven和Gradle。它们是在~/.profile文件中配置的。在Ubuntu的终点站确认如下:
which java
/opt/java/openjdk/jdk-11.0.12+7/bin/java
which mvn
/opt/apache/maven/3.8.2/bin/mvn
which gradle
/opt/gradle/7.2/bin/gradle
在Controller中创建了一个简单的作业,
正如标题所述,Jenkins可以正确地将目录切换到亚行,然后执行它。但是,当它超出亚行的目录时,它不能使用它。以下代码:
.//opt/android-sdk-linux//platform-tools/adb --help
下列产出的结果:
+ .//opt/android-sdk-linux//platform-tools/adb
/tmp/jenkins882020622874679741.sh: rad 18: .//opt/android-sdk-linux//platform-tools/adb: Filen eller katalogen finns inte
Build ste
我有一个在Linux服务器上运行良好的Perl脚本,我试图使用"execute“选项从Jenkins执行相同的脚本。
以下是产出:
Started by user anonymous
Building in workspace /var/lib/jenkins/workspace/PTAF
[PTAF] $ /bin/sh -xe /tmp/hudson1860917719852476959.sh
+ perl /home/testtool/voice/code/SG_V1.0/Voice-data.pl
Can't open perl script "/home/te