How to install plugins in jenkins, with the help of jenkins remote access API?

I would like to know, how can I install a plugin to Jenkins, using the Jenkins Remote access API? I found a way to install using jenkins CLI. But I need to know how to do the same using API. I...

import jenkins in python fails on mac

I installed the jenkins package on a mac using sudo easy_install python-jenkins. The installation went fine, no errors, but when I open python and type in import jenkins I get the following...

Can't access build parameters in excute shell in jenkins

I'm trying to call a python script through an execute shell step in a Jenkins parametrized build. The problem is I need to pass the build parameters to the python script which doesn't happen. Here...

Jenkins claims build as Unstable though i see it passing

I've a simple Jenkins job where i runt python script to run a bunch of tests. I see the build as UNSTABLE even i see no obvious errors in the Jenkins job as well as no tests failing. Whats i'm...

Speed up C# / Selenium tests

We use Selenium integrated with C# to do our web app testing. The problem I've noticed is that compared to other Selenium + [code] combinations, Selenium + C# is incredibly slow. This is just a...

View all labels in Jenkins

Is there a easy way to get a list of all node labels in Jenkins? I can see which labels are set on each node (.../computer/) and which nodes have the same label (.../label/). But similar to...

Get jenkins.BadHTTPException when try to get version info from jenkins run on docker

I installed docker container for Jenkins ver. 2.19.1. docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS ...

Is there a platform-independent way to run Perl/Python/Ruby scripts in Jenkins?

See title. Currently, I do either run the scripts on Windows with a CMD or by using a shell on Linux. This seems a bit unflexible to me since it limits the jobs to be run either on Windows or on...

Jenkins Cannot run program "python" CreateProcess error=2, The system cannot find the file specified

When I run below python script using Jenkins, it is throwing below error. Jenkins Cannot run program "python" CreateProcess error=2, The system cannot find the file specified Below is my code...

Pruning dir-filename in coverage.py html report

When testing some code using coverage.py I stumbled over a problem with too long filenames under windows: the python code to be tested lies pretty well nested somethwere deep in some directory....

How to execute local python scripts in Jenkins UI

I am new to Jenkins, recently want to schedule a job to execute a local python script. I do not have a source control yet so I selected "None" in Source Code Management when creating the job in...

Node.js: Python not found exception due to node-sass and node-gyp

Suddenly in one of my jenkins environment build has started failing, while in local machine it seems to be working fine as i have python installed, From the logs i was able to detect that the...

Getting python3 to work in jenkins

I'm having trouble getting python3 to work in jenkins. Jenkins is currently running in a docker container and i'm using pipeline scripts to facilitate CI/CD This is my Jenkinsfile for a python...

Failed to connect to the host via ssh: Host key verification failed.\r\n

Getting error when i try to connect to hosts in ansible I am able to ping ssh_connection in local host (ansible), but not in jenkins pipeline build. I have tried almost...

execute python file from python script with arguments{jenkins]

I am running a python script. environment : Windows10 python version :2.7.14 I am trying to run this file in jenkins execute batch command(generally used for windows command line option) Here is...

Jenkins Pipeline publish over cifs with pyinstaller generated file not copying over

I have a Jenkins pipeline which checks out some python code then does a pyinstaller to create an executable. By default I see this is in the dist folder. However when I try and copy anything from...

jenkins python module import error

I have installed jenkins module in the VM but still not able import the module and use. Python 2.7.5 (default, Jun 17 2014, 18:11:42) [GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on linux2 Type "help",...

improving performance of behave tests

We run behave BDD tests in our pipeline. We run the tests in the docker container as part of the jenkins pipeline. Currently it takes ~10 minutes to run all the tests. We are adding a lot of tests...

Upgrade Python in Jenkins Docker

I currently have a docker image with Jenkins and Python. I did something like FROM jenkins/jenkins:lts USER root RUN apt-get update && \ apt-get install -y python python-pip python3-pip && \ ...

Python - Difference between Sonarcube Vs pylint

I'm evaluating test framework, lint and code coverage options for a new Python project I'll be working on. I've chosen pytest for the testing needs. After reading a bunch of resources, I'm...

Homebrew: Cask 'java' definition is invalid

I started getting the following error when updating my casks recently: Error: Cask 'java' definition is invalid: Token '{:v1=>"java"}' in header line does not match the file name. I'm on MacOS...

Difference between manylinux1 vs manylinux2020 wheel files in PIP Installer

I am facing a wired issue in Python, The Issue is cryptography-2.9.2-cp35-abi3-manylinux2010_x86_64.whl is not working on the SLES OS. I have a CI/CD added to my repo and when I am downloading the...

Cassandra Windows 10 Access Violation

EDIT: Although yukim's workaround does work, I found that by downgrading to JDK 8u251 vs 8u261, the sigar lib works correctly. Windows 10 x64 Pro Cassandra 3.11.7 NOTE: I have JDK 11.0.7 as my...

Jenkins: line 5: pytest: command not found

I am trying to run a unit test in Jenkins (Jenkins isn't being run locally) for a python script using pytest. My Jenkins congif file pulls source code from bitbucket, and in the build section I...

Django-jenkins --enable-coverage returns 'Coverage' object has no attribute 'data'

I am using django-jenkins v0.110.0 and coverage v5.2.1 , with Django v3.1. As mentioned in the subject, when I ran: python manage.py jenkins --enable-coverage I get this error: AttributeError:...

How to specify the `--formats` sdist option inside setup.py?

I try to create a zipped source python package on a linux distribution without specifying the --formats option to sdist on the command line (using an existing Jenkins pipeline which do not support...

Selenium Unable to locate element only when using headless chrome (Python)

I just started learning Selenium and need to verify a login web-page using a jenkins machine in the cloud, which doesn't have a GUI. I managed to run the script successfully on my system which has...

pip3.6 install mysqlclient==1.3.12 fails with error: unknown type name ‘my_bool’; did you mean ‘bool

I have a project that worked on ubuntu 16.04 with python 3.6 but now we are trying to make it run on ubuntu 20.04 with same python version. I need to install all requirements on the venv and...

Pylint integration with Jenkins build running on dynamic kubernetes pods as agents

We have a Jenkins setup on Google Kubernetes Engine with dynamic kubernetes pods serving as build agents. I want to integrate Pylint as a build step. Python version running on kubernetes pod is...

Jenkins API to update library configuration

I am trying to update a library in "Configuration" we use in Jenkins through Python, but do not see any way to do this through Jenkins API. Is there a way to update the version to 1.1.0 via Jenkins API?