Category : jenkins

Is there any possibility to call inside a scenario another scenario using tags? Eq. @payload_car Scenario: Populate Car payload Given the user "x" populate the car payload When the following information about car are introduced: type "Tesla", color "red", length "4.5m" Then the Payload Car is populated @car Scenario: Select car Given the user "y" ..

Read more

I have a series of Jenkinsfiles that looks like this (this is the production version): pipeline { agent { dockerfile { filename ‘Dockerfile’ dir ‘jenkins/’ label ‘agent && linux’ args ”’ -v /var/lib/package-cache/.npm:/.npm:rw,z ”’ } } environment { NODE_ENV = "production" } stages { stage(‘Install dependencies’) { steps { sh "npm ci –production=false" sh "npx ..

Read more

I have automation running locally and jenkins (node) using headless with 1920×1080 width/height but dimensions return differently since they run on different machines. My question is how can I set my chrome driver to have the same pixel ratio in both machines. Mainly trying to set this consistent so when using doing image comparison for ..

Read more

I want know how to add values to Jenkins dropdown parameter based another parameter value. I referred below link – Active Choices Reactive Reference Parameter in jenkins pipeline This is my Jenkins file #!groovy def date = new Date().format(‘MM/dd/yy’).toString() properties([[$class: ‘ParametersDefinitionProperty’, parameterDefinitions: [ [$class : ‘ChoiceParameterDefinition’,choices : ‘masternhotfix/18.3.0.35_Vol3’,description: ”,name: ‘branchName’], [$class: ‘ChoiceParameter’, choiceType: ‘PT_RADIO’, description: ..

Read more

I want to add radio button or dropdown in my Jenkins project while giving Build with parameter option. I am adding parameters to Jenkins like below: Jenkins File #!groovy properties([[$class: ‘ParametersDefinitionProperty’, parameterDefinitions: [[$class: ‘StringParameterDefinition’, name: ‘RELEASE_VERSION’, defaultValue: ‘1.0.0’], [$class: ‘StringParameterDefinition’, name: ‘packages’, defaultValue: ‘true’], [$class: ‘StringParameterDefinition’, name: ‘samples’, defaultValue: ‘true’], [$class: ‘StringParameterDefinition’, name: ‘branchName’, defaultValue: ..

Read more

I cannot resolve an issue that I was stuck with in my beginner tutorial. When I try to create just a deployment on Kubernetes from Jenkins, I got the error message. How can I solve this problem? Could anyone pls help me? Error Starting Kubernetes deployment Loading configuration: /var/lib/jenkins/workspace/k8sdeploy/k8sdeploy.yml ERROR: ERROR: Can’t construct a java ..

Read more