小编CE_*_*CE_的帖子

在Jenkins中的两个批处理命令行之间添加超时

这是我想用Jenkins启动的代码:

start cmd.exe /k "node "C:\Program Files\Appium\node_modules\appium\bin\appium.js" -a 127.0.0.1 -p 4723"
ping 127.0.0.1 -n 30 > nul
C:\path\NUnit-2.6.4\NUnit-2.6.4\bin\nunit-console.exe C:\path\NUnit-2.6.4\NUnit-2.6.4\bin\apk\UnitTestProject1.dll
Run Code Online (Sandbox Code Playgroud)

这是我每次尝试暂停时得到的错误:

"ERROR: Input redirection is not supported, exiting the process immediately."
Run Code Online (Sandbox Code Playgroud)

timeout /T 60和相同的错误sleep 60

根据这篇文章,超时在非交互式脚本中不起作用.

如何在我的情况下添加暂停?

编辑Will Ryan:

我试试这个:

在此输入图像描述

构建工作,但测试持续时间只有0.5秒,暂停没有做任何事情

在此输入图像描述

控制台输出是:

C:\Program Files\Jenkins\jobs\ZFAIL\workspace>echo "--" 
"--"

C:\Program Files\Jenkins\jobs\ZFAIL\workspace>PING 1.1.1.1 -n 1 -w 30000  1>NUL 

C:\Program Files\Jenkins\jobs\ZFAIL\workspace>echo "++" 
"++"

C:\Program Files\Jenkins\jobs\ZFAIL\workspace>exit 0 
Finished: SUCCESS
Run Code Online (Sandbox Code Playgroud)

batch-file jenkins

19
推荐指数
3
解决办法
3万
查看次数

Qmake不使用stdc ++ 11编译标志

当我尝试编译我的项目时,我遇到了这个错误:

g++ -c -pipe -std=c++11 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -std=gnu++98 -Wno-deprecated -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I+= -I../includes -I. -I. -o ThreadPool.o ../sources/ThreadPool.cpp
In file included from /usr/include/c++/5.3.1/thread:35:0,
                 from ../includes/ThreadPool.hpp:4,
                 from ../sources/ThreadPool.cpp:1:
/usr/include/c++/5.3.1/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires …
Run Code Online (Sandbox Code Playgroud)

c++ qt c++11

5
推荐指数
1
解决办法
448
查看次数

标签 统计

batch-file ×1

c++ ×1

c++11 ×1

jenkins ×1

qt ×1