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
2
votes
0 answers

Changelog computation broken when using both shallow and non-shallow checkouts in Jenkins multibranch pipeline

I am working on a Jenkins multibranch pipeline project that builds code on multiple platforms. Our code uses the GitSCM plugin to checkout. There is one initial shallow checkout that just fetches some bootstrap scripts: checkout scm: [ …
2
votes
1 answer

From Jenkins run getting the following error while ssh: Permission denied (publickey,password,keyboard-interactive)

When I am doing ssh to a remote windows machine from the linux CLI running the following command it works: ssh -tt username@ip_address However when I am running the same via Jenkins, it throws the following error: + ssh -tt…
RDX
  • 145
  • 3
  • 12
2
votes
1 answer

docker: open /.env: no such file or directory

Goal Action: Run command from my local machine Result: Docker image deployed on cloud instance Approach For remote deployment, I am using gcloud commands. The command below is working but the only problem is that it is not picking environment…
2
votes
2 answers

How to get list of changed files in Jenkinsfile for a pull request?

Is it possible to get a list of changed files in the Jenkinsfile during a pull request build? I am currently doing this... def changeLogSets = currentBuild.rawBuild.changeSets for (int i = 0; i < changeLogSets.size(); i++) { def entries…
2
votes
1 answer

Continue execution of subsequent stages after timeout of a given stage in Jenkins pipeline

I'm constructing a declarative Jenkins pipeline where i want to have timeout of a stage in a way that subsequent stage continue to run gracefully. I'm sure there are no inter-dependencies between stages in this usecase. pipeline { agent any …
Yash
  • 2,944
  • 7
  • 25
  • 43
2
votes
2 answers

JENKINS REST API throws 403 forbidden

Problem statement : I have Jenkins Sever V:2.190.2 running on cloud. Permission "Logged In User can do any thing" is selected on Jenkins Config Security. So, it means user having valid user name and password can log in to the jenkin server and…
Kumar
  • 955
  • 5
  • 20
  • 50
2
votes
1 answer

How to set “Scan Organization Triggers” via Jenkins script console?

I need a way to set “Scan Organization Triggers” via the Jenkins script console. This is close, but only shows Multibranch or Organization Scan triggers if they already…
Cullub
  • 2,901
  • 3
  • 30
  • 47
2
votes
1 answer

Selenium::WebDriver::Error::ElementNotVisibleError: element not interactable jenkins

logs: Organization flow Successfull case Organization should be created successfully. Failure/Error: find('#submit_requirements_crawl_type_1', visible: false).click Selenium::WebDriver::Error::ElementNotVisibleError: element not…
2
votes
0 answers

Automating upgrades of SSIS packages from SQL Server 2012 to above

I have a bunch of SSIS packages created in SQL Server 2012. As new SQL Server versions come out, we have to provide a these packages in a format for SQL Server 2014, 2016 (every time for a new SQL Server version). To do this, we manually upgrade…
Max Power
  • 350
  • 4
  • 15
2
votes
1 answer

When do we need to have slaves for Jenkins and when we do not?

I am a beginner user of Jenkins. I am trying to putting a development process onto the DevOps pipeline that includes Jenkins, GitHub, SonarQube, IBM UCD. It is not a very complicated deployment process and it uses windows machine. There are three…
user6934519
2
votes
1 answer

Pass Jenkins variable to Ruby scripts

Currently i'm trying to echo the name of the user that trigger a build using $BUILD_USER_ID from the user vars plugin, but from there i'm unsure as to how to pass this into my ruby scripts, i did this in a batch commmand: set USER=…
2
votes
3 answers

How can I generate html reports in jenkins

Image of post build action step for "Publish HTML Reports plugin" in maven based project After adding the plugin also I am getting http 404 error. Is there anything required to write any shell script or any code in pipeline to generate html reports…
Sweety
  • 53
  • 2
  • 2
  • 6
2
votes
1 answer

How to run a JAR file using Jenkins

How to execute a JAR file from Jenkins? I have a JAR output from a gradle build section, i want to execute this JAR file after it created. I am using a Jenkins platform setup in windows server. I don't have any separate node for execution, master…
2
votes
0 answers

How to add a custom web page in Jenkins?

I am trying to make a web-page which displays the dynamic web page - basically it displays a table comprising of Name, IP_Address, and Group Name with used check/uncheck box. This webpage can run on a different tcp socket so it can be…
Bali Vinayak
  • 289
  • 1
  • 4
  • 11
2
votes
2 answers

How do i launch my jenkins-cli through docker?

i have created the docker image that installs java,jenkins,jenkins-cli. now i need to pass some argument through jenkins-cli, so i need to launch jenkins-cli. How do i do it? i have no idea how it launches. Here is my script FROM…
Hithesh
  • 113
  • 1
  • 13