Failed to start gauge API: Error occurred while waiting for runner process to finish. #2710
antondebeer
started this conversation in
General
Replies: 1 comment
-
|
Have you tried running the test using the Gauge Gradle plugin instead of Here’s info about plugin: https://github.com/getgauge/gauge-gradle-plugin |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Good Day,
I am trying to setup our Gauge Project in Jenkins in a Docker. I followed the Gauge Docs and use the Selenium project in the Gauge Docs but still I can't get past this error in my Pipeline:
BUILD SUCCESSFUL in 2s
4 actionable tasks: 4 executed
Compatible version of plugin html-report not found. Installing plugin html-report...
Failed to install plugin 'html-report'.
Reason: Invalid plugin name or there's a network issue while fetching plugin details.
Installing required plugins.
........................
Successfully installed plugin 'html-report' version 4.3.1
src/main/java/com/thoughtworks/gauge/example/pages/CreateProductPage.java:3: error: package org.openqa.selenium does not exist
import org.openqa.selenium.WebElement;
^
src/main/java/com/thoughtworks/gauge/example/pages/CreateProductPage.java:8: error: cannot find symbol
public WebElement product_title;
^
symbol: class WebElement
location: class CreateProductPage
src/main/java/com/thoughtworks/gauge/example/pages/CreateProductPage.java:10: error: cannot find symbol
public WebElement product_description;
....
symbol: variable PageFactory
location: class CustomerSpec
src/test/java/com/thoughtworks/gauge/example/pages/DriverFactory.java:30: error: cannot find symbol
WebDriverManager.firefoxdriver().setup();
^
symbol: variable WebDriverManager
location: class DriverFactory
Note: src/main/java/com/thoughtworks/gauge/example/pages/BasePage.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
100 errors
Error occurred while waiting for runner process to finish.
Error : exit status 1
Error ----------------------------------
[Gauge]
Failed to start gauge API: Error occurred while waiting for runner process to finish.
THIS IS MY DOCKERFILE
FROM ubuntu
Install Java.
RUN apt-get update && apt-get install -q -y
curl
zip
openjdk-11-jdk
apt-transport-https
gnupg2
ca-certificates
RUN curl -SsL https://downloads.gauge.org/stable | sh
Install gauge plugins
RUN gauge install java &&
gauge install screenshot
ENV PATH=$HOME/.gauge:$PATH
Set the working directory in the container
WORKDIR /workspace
Copy the gradlew and gradlew.bat files into the /workspace directory
COPY gradlew /workspace/gradlew
COPY gradlew.bat /workspace/gradlew.bat
Copy the entire project into the container
COPY . /workspace/
Set the default command
CMD ["bash"]
THIS IS MY PIPELINE SCRIPT
pipeline {
agent any
}
Can someone please help me?
Beta Was this translation helpful? Give feedback.
All reactions