Questions tagged [jenkins-cli]

Jenkins has a built-in command line client that allows you to access Jenkins from a script or from your shell. This is convenient for automation of routine tasks, bulk updates, trouble diagnosis, and so on.

has a built-in command line client that allows you to access from a script or from your . This is convenient for automation of routine tasks, bulk updates, trouble diagnosis, and so on.

679 questions
-1
votes
1 answer

Create Okta user via Okta API in Jenkins

Question I am running Jenkins for job automation and using Okta for authentication. I would like to create a Jenkins job that I can run on demand to create a user in Okta. The user will have the the attributes required by Okta: email, username,…
-1
votes
1 answer

Is there a way to invoke ansible playbook from Jenkins when ansible is running on a remote server

I have ansible engine running on server 1 and Jenkins running on server2. Is there a way to execute the playbook from the Jenkins server using any of the plugins.
-1
votes
1 answer

jenkins, Jenkinsfile, Devops,

I have a Jenkinsfile where I want to apply conditional cases. But I can't assign the exit status of ./*sh output to a variable where I use for if case. `environment { //This variable need be tested as string doError =…
-1
votes
1 answer

Jenkins pipeline script with invoking powershell script file is not working in stages and gets hanged till i abort

Hi am working on creating a descriptive pipeline which has 4 simple stages. Each stage steps is to invoke a powershell file with arguments. pipeline{ agent none stages{ stage("demo1"){ steps{ powershell…
-1
votes
1 answer

Unknown conditional beforeAgent. Valid conditionals are: allOf, anyOf, branch, buildingTag, changeRequest, changelog, changeset, environment, equals

when {anyOf{ beforeAgent true; environment name: "IRM_VLM_FACTSET", value: "true"; environment name: "env1", value: "true"; environment name: "env2", value: "true"; environment name: "env3", value: "true"}} this is giving me error . Can you tell me…
ayushgupta
  • 112
  • 11
-1
votes
1 answer

How to run selenium testscripts which are in maven project( - eclipse - java - and pushed to git -) on Jenkins which is hosted on a different machine

I am having trouble for opening browsers : org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. Is there any solution about it?
-1
votes
1 answer

How to start instance using URL in groovy

I am tring to create a groovy script where i need to make a call to different master from another master to get some information. so i want to know if there is any possibility to start an instance on diffent master from another master in groovy.
Mike
  • 512
  • 3
  • 16
-1
votes
1 answer

How to start appium server from Jenkins?

I have a problem for starting appium server from Jenkins. If I go to the configuration and type 'appium' in shell execution, appium command is not found. [appium-mobile-test] $ /bin/bash -xe…
mare
  • 1
  • 2
-1
votes
1 answer

In jenkins getting this error org.openqa.selenium.WebDriverException: unknown error: unable to discover open pages

I m trying to run the selenium scripts in jenkins(@localhost) using pom.xml but facing issues w.r.t chrome driver. Chrome Version 52.0 Selenium-server 2.53.0 Below is the complete…
-1
votes
1 answer

Jenkins cli connection timed out

I am trying to access Jenkins from another server than the one it's installed one. When I try to run java -jar jenkins-cli.jar -s http://remote:port/jenkins help I have, after a few dozens of seconds, a java.io.IOException: Failed to connect to…
-1
votes
1 answer

Upgrade to Jenkins 2.0 on Windows Server

We are currently running version 1.651.3 on our server and want to upgrade to version 2. From what I can tell online, I just need to run the .msi file and install into the current Jenkins directory and we're good. That didn't work, so I tried…
rsnider19
  • 1
  • 1
-1
votes
2 answers

jenkins enable maven command line

I want to setup jenkins using the command-line only. I am successfully able to install plugins and configure jobs. So i've installed the maven-plugin using jenkins-cli but want to be able to configure it to say "Automatically install maven latest…
skymoose
  • 103
  • 1
  • 1
  • 7
-1
votes
2 answers

copy an existing job in jenkins which does 'clean publish'

I have a Jenkins job created and working fine where this job connects to a GIT repository and after that the Build task is 'clean publish' . Now I need to create a new job in same Jenkins where this new job connects to other GIT repository and run a…
ponni
  • 1
  • 1
-1
votes
1 answer

Jenkins job log monitoring, parsing with error pattern in master

I am working on a perl script which will do the following: Trigger a script in post build action when job fails. Read the log file and try to match the errors with a consolidated error/solution file. If error is matched with pattern file, then…
-2
votes
1 answer

Getting error in executing windows batch command through Jenkins integration tool

Im trying to build a project through Jenkins integration tool. I tried to run locally through batch Command line option. I had earlier installed newman package as well as jenkins.war package to run through local server. But, when i try to build the…
MohitK
  • 19
  • 6
1 2 3
45
46