Tag: jenkins nightwatch.js

从shell脚本中返回一个结果值,用于在Docker容器中的testing给Jenkins CI

我想使用Jenkins CI来执行我的自动end2endtesting。 我的testing与Nightwatch.js一起运行。 我想通过shell脚本在自创的docker容器中运行我的自动化testing。 这个shell脚本在本地机器上完美运行,但是如果我在Jenkins CI启动这个shell脚本,如果testing通过或失败,shell脚本必须返回一个值。 如果他们通过jenkins的工作也必须通过。 而当Docker容器中的testing失败时,Jenkins作业也必须失败。 这是我目前的shell脚本: #run the end2end tests headless in docker container from local with remote repository #parameter: $1 folder on local machine to copy in project sources (with cucumber reports after test execution) # (IMPORTANT: You have to ensure that the given folder path is in the file sharing […]