Questions tagged [jenkins]

Jenkins stands as a Java-based open source continuous integration tool, offering support packages for various operating systems including Linux, Mac OS X, Windows, FreeBSD and OpenBSD. It was originally created as a fork from the Hudson project.

The installation of bower angular-card-input failed during the execution of the Jenkins build script due to an HTTP request

I encountered an issue when trying to run a bower script for building a frontend in Angular: When executing the bower command, I received an error regarding git fetch from the following link: https://github.com/angular-ui/ui-utils.git, with exit code ...

When executed as a root user, the npm install command functions correctly, but when run as the jenkins user, it throws an

When attempting to execute npm install on my CentOS Linux machine as the user jenkins, I encounter the following error: npm WARN tar ENOENT: no such file or directory, lstat '/home/jenkins/workspace/'job name'/Scheduler/scheduler-component/node_modules/ " ...

Setting up the CHROME_BIN path in Jenkins environment variable for running Headless Chrome without Puppeteer can be achieved by following these

Currently, I am facing an issue in my Angular project where I can successfully run tests using Karma and Jasmin on my Windows local machine with headless chrome. However, Jenkins is giving me an error stating "No binary for ChromeHeadless browser on your p ...

Using an Angular HttpClient to authenticate with an API by utilizing a token for

I am currently attempting to fetch data from my Jenkins JSON API via HTTPClient. The data I need access to is restricted, so I must authenticate against Jenkins. To do this, I have generated an API Token. However, I am unsure of how to authenticate myself ...

Unlock the npm package on TFS

Encountering an issue with a npm package called tfs-unlock while using grunt. Upon trying to build, the server returns the following error message: [exec] [4mRunning "tfs-unlock:checkout" (tfs-unlock) task[24m [exec] [31m>> [39mChild process exi ...

Automatically assign tasks to fresh Bitbucket pull requests

We are looking to automate the addition of several default tasks to every new pull request in Bitbucket. As tasks are not supported by the Bitbucket API, one solution could be to use a Selenium script or another GUI tester for automation. One idea is to ...

Guide on setting up the Working Hours Jenkins Plugin

In order to restrict the JENKINS execution to only working hours, we have set it up to run from 8am to 6pm daily. The job is scheduled to stop in the evening and automatically resume in the morning using the Working Hours Jenkins Plugin. However, after con ...

What is the best way to configure Jenkins to update a specific URL across multiple Python test scripts, allowing me to manage all scripts in a single repository?

My team is currently using Jenkins to run Selenium python tests in both a development and production environment. We have separate Jenkins pipelines for each environment, but we want to be able to modify a single URL in all of the test scripts without dupl ...

The combination of Cypress and Istanbul is failing to produce any code coverage reports

I am currently working on a VueJS app and testing it with Cypress. One of my main objectives is to gather code coverage information. After running tests in Cypress, I am able to generate a .nyc_output/out.json file that shows how many times specific lines ...

Can I safely remove the Selenium.log file from my CentOS server?

My Master node is running out of space and I need to free up some room to reboot my daily tests. The Selenium.log file seems to be taking up a significant amount of space, but I don't think it's actively being used. Is it safe for me to delete this file? ...

Tips for sending Python error notifications to Microsoft Teams using the Jenkins Office 365 connector webhook

I've been working on sending a python error message to a teams alerts channel, for example: File "Myfile/......../test.py". line 8 n = len(arr_)e SyntaxError: invalid syntax I have set up different exit codes based on whether the code throws an ...

SonarQube Scan reveals absence of code coverage metrics

I have been working on a Jenkins project to perform SonarQube analysis on my NodeJS project. I recently added istanbul as a dependency in my project's package.json. In the Jenkins build configuration, I start by executing a shell script: cd ./project ...

What is the reason behind Jenkins producing an exit code 127 after executing the command sh 'python --version'?

I encountered the same error message when running 'python --version' and 'python3 --version' commands in Jenkins. It's puzzling that Jenkins fails to recognize these commands even though the Dockerfile image has Python installed. My Jenkins version is 2.31 ...

Tips on personalizing the BROWSERSTACK_BUILD_NAME within Jenkins

Currently, I am in the process of incorporating BrowserStack into my Selenium Python framework and utilizing Jenkins for running tests. However, I am encountering difficulties when trying to personalize the build name on the BrowserStack dashboard. ...

I am experiencing an issue with the screenshot not loading on my Jenkins result page

After executing my test cases, the results are generated in a .html format. When I click on the .html file, all test case results along with Pass or Fail screenshots are displayed. I run the Selenium test cases using the Mozilla Firefox browser. When I a ...

Executing npm webpack within mvn release:perform task - a step-by-step guide

My goal is to generate RC versions for the application using Maven release:prepare and release:perform goals on Jenkins server. The sequence of events includes npm install, npm run build (to execute webpack), mvn release:prepare (which generates correct RC ...

Encountering a geb.driver.DriverCreationException while executing a Jenkins automation task using Selenium with Groovy on a LINUX machine

Encountering a geb.driver.DriverCreationException error while running a Jenkins automation job with Selenium and Groovy on a LINUX computer. Working on an Automation script using selenium with Groovy. Here are the environment details: java version = 1.8.0 ...

Error: Unable to launch Chrome - Version 75.0.3770.100

Our C# selenium tests running on Jenkins are experiencing failures during execution with the latest version of Chrome 75, showing the error message "Chrome failed to start." After researching various articles, I have added the following code as arguments ...

Jenkins script ending abruptly while attempting to run npm install on a Windows machine

When setting up my Jenkins job, I encountered an issue with building a JavaScript app using Grunt. The Jenkins build scripts are supposed to create a build directory (if it doesn't exist), navigate to that directory, and execute the following commands: np ...

Is there a TestNG Listener that can automatically clear the temporary folder, even if the test run is aborted through

When I run my tests, I utilize Java Selenium WebDriver along with TestNG. In the final test, I include driver.quit() to ensure that any files created in the /tmp/ folder are removed. However, if the run is interrupted (e.g. via Jenkins), the contents of ...

In Jenkins, there do not exist any configurations specifically for NodeJS installations

I've been struggling with this issue for a while now and haven't been able to find a solution online. Using Jenkins as my CI tool and Git as the source of code. The build trigger is set to another build stability. The plugin manager indicates th ...

Tips for interacting with the window element (for uploading files) via Selenium in Jenkins

In my automation tests, I am using Java and Selenium to perform tasks. One specific test requires uploading an image from the computer. To achieve this, I have utilized the Robot object to identify the upload window and specify the file path. Interestingly ...

Suggestions for content in Jenkins Execute shell script for running automated tests

I'm a beginner with Jenkins and I'm unsure about what to enter in the Build - Execute shell script section. I want to run my automation scripts using Jenkins. I write my scripts in Selenium WebDriver and use macOS. Can someone provide me with a detailed ...

What is the functionality of the Jenkins job console output?

I am considering incorporating the console output technology from a Jenkins job into one of my applications. It's fascinating how Jenkins jobs constantly display command output in the console with minimal buffer and no page refresh. Could someone explain ...

When executing Selenium tests through Jenkins and MSUnit, the browser fails to open, yet the results are still valid

For the purpose of a POC, I have set up a Windows Server 2012R2 machine with Jenkins installed to run Selenium UI tests using msunit. However, during the CI build process (compilation and test execution) on the server where Jenkins is running, I am unable ...

Error parsing module: Encountered unexpected token at line 7855, character 112

Currently, I am in the process of constructing a frontend application using npm run build via Jenkins. Unfortunately, I have encountered an error message as shown below. Can you provide guidance on how to resolve this issue? Creating an optimized productio ...

Tips for saving error messages to a text file after Selenium WebDriver Java scripts fail:variables can be utilized to capture and store exception and error

Can anyone assist me with saving exception and error messages in a text file for only the failed scripts using TestNG, Jenkins, Java, and hybrid automation framework? Any help would be greatly appreciated. ...

Implementing NPM commands in Jenkins using shell scripting

Whenever I attempt to run the "npm" command, I encounter a syntax error. Users/Shared/Jenkins/Home/workspace/projectName/npm test ^^^^ SyntaxError: Unexpected identifier This is the Jenkins Build shel ...

Handling sporadic failures of Selenium tests during automated deployment

Our C#/ASP .Net web application undergoes the build and deployment process by our server, Jenkins. One crucial step in this process is ensuring that all automated tests, including functional tests using Selenium 2 WebDriver and NUnit, pass before deploymen ...

Automating Jenkins interfaces using selenium automation techniques

I am looking to create a system that can automatically detect any flakiness in my test scripts. I need to track the pass percentage of a certain number, let's say n builds, for a specific job. Unfortunately, using Xpaths to collect this data is not pr ...

Perform a conditional post-build action in Jenkins without relying on plugins

It seems like I have the ability to make a build step conditional using this interesting plugin: link I'm wondering if this plugin also works for Post-Build steps. Is there a way to make Post-Build steps conditional without relying on a plugin? The situa ...

Jenkins is having trouble running Selenium tests with the FirefoxDriver, even though they work perfectly on a local desktop setup

I am currently facing an issue while trying to execute my Selenium tests in Jenkins. These tests are running smoothly on my local machine using Maven test or IntelliJ. Here is the setup I am using: Firefox 39 x64 Selenium 2.46.0 SeleniumHQ pl ...

Tips on setting up Jenkins CI/CD pipeline for a Node.js application that is executed through Docker Compose

I have a NodeJS application that has been dockerized. The application is being run on a server using docker compose. Dockerfile: FROM node:18 WORKDIR /app COPY package*.json ./ RUN npm install COPY . . EXPOSE 3030 CMD ["npm", "start"] docker-compose.yml ...

Jenkins is unable to locate the module, '@babel/plugin-proposal-private-property-in-object' (0:undefined) for React

An Error in Jenkins identified within the console.log terminal 13:29:56 A Syntax error has occurred: [BABEL] /var/jenkins_home/workspace/govt-finance/qa/build-and-deploy-web/node-app/src/index.js: Unable to locate module '@babel/plugin-proposal-priva ...

Jenkins is unable to open an actual browser in Ubuntu 16.04

My selenium script successfully launches the chrome browser, navigates to a website, and performs basic checks. However, when attempting to run the same script locally through Jenkins, an error occurred: selenium.common.exceptions.WebDriverException: Mes ...

What is the process for implementing parallel test execution in Jenkins using Node.js?

Looking for advice on setting up Jenkins to run tests in parallel with my Node.js app. Currently using grunt test (grunt) along with mocha, chai, and sinon for testing. ...

Creating environment variables and making changes to a JSON file with the Power Shell Script Plugin in Jenkins: A step-by-step guide

The JSON file is located at %Workspace%\solution\config\appsettings.json { "appName": "Test", "appId": "1", "env" : "Test", "url" : "https://url.com", "client_id": "", "client_secret": "", "QAEmail" : "<a href="/cdn-cgi/l/email-protecti ...

concealing your password within a Java class file as part of a testing scenario

I am currently developing a Selenium test case for our company's Jenkins server, where all employees have access to view the Java files I create. public static void main(String[] args) { WebDriver driver = new FirefoxDriver(); driver.get(" ...

Jenkins error: Selenium SessionNotCreatedException caused by 'Insufficient space on device (OS error 28) for path "/tmp/rust_mozprofileO0WZJN"'

Encountered an error while trying to run Selenium using Jenkins: org.openqa.selenium.SessionNotCreatedException: Could not initiate a new session. Issue arose during session creation with the driver service, leading to service stoppage. Response code 500. ...

Encountering a 403 error while trying to download dependencies from Artifactory via Npm

Currently in the process of executing a task within a Node.js project. One of the tasks involves using the rtnpminstall command, which in turn executes the npm install command. The execution of the rtnpminstall command is triggered by the Artifactory plugi ...

Error: The specified driver file could not be found at /usr/local/bin/geckodriver

I encountered an issue while attempting to run my automated test cases through Jenkins. Operating Server: CentOS 7 java.lang.IllegalStateException: The driver executable does not exist at the specified path: /usr/local/bin/geckodriver ...

Tips for executing npm/grunt commands within Jenkins

Hi everyone, I'm new to this area and currently facing a challenge with setting up Jenkins. I have been attempting to execute the following commands from Jenkins: npm install grunt quickStart As of now, I have Jenkins running on a Windows machine as ...

Difficulty installing yarn for repositories using git+https on Jenkins leads to issues

I'm currently setting up my project on Jenkins to trigger an automatic build for every commit. However, I'm encountering an issue when trying to run yarn install using a NodeJS script in Jenkins. It fails to install the dependencies that are bein ...

Unable to proceed with NPM Install - Utilize Local File System to Import Dependencies

Hey there! Our team is currently utilizing Jenkins and we have a step in our pipeline where we download dependencies like mocha, cucumber, etc. using npm install Unfortunately, the client's Jenkins does not have internet access, nor do they have any depen ...

Selenium GUI tests are not showing up when running in Jenkins on a Windows 7 machine

I am encountering an issue where when I run my Selenium test (mvn test) from Jenkins on a Windows system, I can only see the console output and not the actual browsers being opened. Is there a way to configure Jenkins so that I can view the browsers runn ...

Encountering org/openqa/selenium/remote/SessionNotFoundException error while executing JMeter tests in Jenkins

Recently, I encountered an issue when trying to run web app JMeter tests using the Firefox Driver in Jenkins. I was able to successfully execute the tests in non-GUI mode on the terminal of the Jenkins server. I could also run the tests successfully on th ...

Can Selenium be utilized with a headless browser to manage functionalities?

My goal entails running automated tests using Selenium WebDriver through Jenkins, but I encountered an issue where Jenkins was unable to open the browser during the build job. As a workaround, I modified my code to run in headless mode. However, since swit ...

Failure of Jenkins build when running the yarn bin lerna command

Attempting to utilize the yarn bin lerna command in a Jenkins pipeline is resulting in failure due to an attempt to fetch/update package git repository with ssh credentials. This is being done within a multibranch project using the following Jenkinsfile: ...

executing automated tests with Selenium in headless mode using Jenkins on a Windows environment

I specifically designed my application to be compatible with Internet Explorer only, which is why it may not function properly in Phantom JS or HTML Unit Driver. Is there a way to run it in Jenkins in headless mode on Windows? ...

Selenium Maven in Jenkins Kubernetes plugin is able to fetch dependencies but struggles with compiling

I have modified this example from the Jenkins Kubernetes plugin documentation Recently, I set up a basic Jenkins pipeline job and included the groovy script. While Maven successfully fetched all the dependencies, it unexpectedly crashed during the compila ...

Problem with NPM caching

Using Jenkins to execute test cases based on Cypress, I followed the kitchen sink example provided by Cypress on their GitHub repository here. However, when running this in a Jenkins job, an error occurred. The error message displayed: NPM WARN prepare re ...

Jenkins encountered a critical error: FATAL - The build script located at C:selenium tests for moveonmoveon4tests1uild.xml could not be found

My current setup involves using Jenkins and Ant to execute my selenium tests successfully on my local machine. However, I recently encountered an issue when trying to run the tests on a Jenkins server located in a different location. The problem arose be ...

Struggling with optimizing assets in Jenkins pipeline causing Webpack build to get stuck

My Angular2 app uses webpack for both development and build purposes. While building my sources (webpack --profile --bail) on my local machine, the webpack process completes successfully. However, when running the same command in my Jenkins CI pipeline, t ...

Jenkins encountered a connection timeout issue with Chrome

Encountered an unusual issue that is new to me. I recently set up a local instance of Jenkins on my Windows 10 laptop. While the service is running smoothly and builds are successful, I am facing a problem when trying to open Chrome. The log displays the f ...

Jenkins Docker build fails for React app, while the local build is successful

When I run npm run build on my local machine, everything works perfectly. However, when I try to run it on a Docker image launched through Jenkins, I encounter some issues: Cannot find module: 'file-saver'. Make sure this package is installed. Y ...

Guide to scheduling Ant build executions in Jenkins for automatic runs

I have prepared a set of test cases and organized them in the testng.xml file. Additionally, I have set up a successful execution with the build.xml (ant build) file. My next objective is to automate the running of all my test cases through the jenkins i ...

What are the steps to configure a Jenkins CI server for executing automated BDD selenium tests with a remote webdriver?

Just diving into the world of Jenkins and currently attempting to configure a server to execute selenium tests from a GitHub repository. Something seems off in my setup, but despite multiple attempts, I can't seem to pinpoint the issue. I have set up the ...

Encounter issues while trying to set up Psycopg2 on Jenkins Pipeline

I am currently utilizing Jenkins Pipeline on CentOS 6 and my objective is to set up python 3.5 dependencies through this specific Jenkins Pipeline procedure. The setup of my Declarative Pipeline looks like this, pipeline { agent any stages { ...

Running the application through Jenkins by using the command npm start

Running shell commands npm start & is giving us some trouble. Our Jenkins jobs seem to either run endlessly or npm doesn't start properly. We're wondering what the best approach would be, especially when needing to start multiple nodejs servers sim ...

Commands for Yarn, such as type checking, testing, and formatting with Prettier, are encountering

I have been encountering errors in my Jenkins builds for the past 3 weeks. Despite numerous attempts, I cannot seem to get these commands to work within the Jenkins pipeline code using our shared libraries. The same commands work fine locally. The errors ...

Issue with watir webdriver script not running successfully in Jenkins platform

I recently set up Jenkins on my local machine and now I want to run a watir webdriver script in Jenkins that is currently running successfully through the command prompt. Below is the basic watir script: require 'watir-webdriver' b=Watir::Browser.new b.go ...

Jenkins encountered an issue where script execution was blocked on <URL> due to the document's frame being sandboxed without the 'allow-scripts' permission set

When using an iFrame in HTML, it's always best to remember to sandbox it and set the 'allow-scripts' permission to true. However, I'm facing an issue in my pure Angular JS application where there is no iFrame present. It runs smoothly on my local machine ...

Creating an object in AngularJS by merging data from three separate API calls

I am looking to develop a Jenkins dashboard using AngularJS. I am considering combining data from three different API calls to create an object that can be used in the HTML file with ng-repeat, but I'm not sure if this is the best approach. The desir ...

Setting a unique build number in Jenkins using either yarn or npm from the command line - here's how!

I'm fairly new to the world of nodejs and I am currently working on automating the regular build of a UI application using Jenkins. I have encountered a challenge with setting the 'build number' part of the version from the command line befo ...

Jenkins is experiencing issues running Selenium scripts on Chrome and Firefox

My configuration includes the Selenium webdriver, along with TESTNG and Maven. I have successfully run tests on IE, Chrome, and Firefox from Eclipse. However, when I attempt to schedule these tests using Jenkins, they only work on IE and fail on Chrome an ...

Problem with Running Jenkins

When running a Selenium script from Eclipse on a local machine, the script clicks on an UPLOAD button in the browser to upload files from the local machine to an application running in the browser. The file uploading process fails when the script is execu ...

Strategies for thorough module testing in my PHP application using PHPUnit and Zend Framework 2

I have successfully tested my application module and another module separately. However, I would like to run all tests (both for the application module and the other module) together in order to generate a clover report for Jenkins. What steps should I tak ...

Deploy your Vue.js project using Jenkins for seamless integration

I am new to Jenkins and have successfully completed a few builds/deployment jobs of .net projects. Now I am attempting to build/deploy a Vue.js project through Jenkins, but I am facing difficulties... I can build the project directly on a server using th ...

Is it possible in Jenkins to save npm packages in order to avoid having to reinstall them for every build process?

Utilizing Jenkins (CloudBees) for my project's building process involves running scripts to download node packages using npm during each build. However, a recent issue with the npm registry server caused disruptions in the project's build cycle. ...

The karma Jasmine test failed to invoke the async callback within the timeframe set by the jasmine.DEFAULT_TIMEOUT_INTERVAL

I am facing an issue with my Angular4 unit tests using karma/jasmine. When I run the tests on PhantomJS browser locally, everything works fine. However, when I attempt to run the same tests on Jenkins (on PhantomJS), I encounter the following error: Stack ...

Execute test scenarios and upon successful completion, initiate deployment of a React JS application using Jenkins

I am currently facing an issue with running test cases and deploying a React-js app using Jenkins. After pushing my code to Git, I can successfully run the React-js app locally. However, when trying to execute the second command mocha (which is used to ru ...

Jenkins is not capable of running an http-server

My setup involves using a local Jenkins on Windows 10. However, I faced an issue when attempting to start a local http server from a job using npm's http-server package. The error message "http-server is not recognized as an internal or external command, ...

What is the process for running selenium-based tests/scripts for an enterprise project or application?

One fundamental question that arises is how Selenium scripts are executed in an enterprise/project/application. These scripts are typically written in Java using locators and various tests are created. The tests are organized through TestNG and can be run ...

Issue encountered when executing mvn with selenium testing

I recently started using Selenium and encountered an issue after running mvn verify with my test included in the code. My setup involves Java Junit with WebDriver. Below is a snippet of my test code: import java.util.regex.Pattern; import java.util.concu ...

The Jenkins build process is encountering errors while trying to generate lighthouse reports

Fri, 28 May 2021 09:27:18 GMT ChromeLauncher Waiting for browser............................................................................................. Fri, 28 May 2021 09:27:19 GMT ChromeLauncher Waiting for browser.................................. ...