Questions tagged [jenkins]

Jenkins is an extendable open source continuous integration server

Filter by
Sorted by
Tagged with
0
votes
0answers
20 views

MAC os not loading the modules of python in jenkins, how to fix that?

When I ran the python scripts directly, it is able to detect modules of python. But when I ran with jenkins, even the default OS module is not being detected. Any suggestions on how to fix that?
0
votes
0answers
27 views

E: Command line option --enablerepo=nginx is not understood in combination with the other options [closed]

I am new programmer. and I am learning how use Jenkins with Docker in Ubuntu 20.04. Could you, please give me a help? nginx.repo sudo apt install curl gnupg2 ca-certificates lsb-release echo "deb ...
-1
votes
1answer
14 views

Jenkinsfile - calling multiple groovy scripts

We have our shared libraries on gitlab called mainlibrary and it has a lot of groovy files. Example in mainlibrary gitlab repo we have the following files. startup_pipeline.groovy cleanup_pipeline....
0
votes
1answer
18 views

Jenkins github settings without having to provide full repo URL

Going through a tutorial and found that the author has a different view of github and he doesn't have to provide the full URL of the github repo. I see a different layout compared to above and need ...
0
votes
0answers
17 views

Jenkins - Save different combination of parameters for the same job

I have a pipeline build job with multiple parameters, for example: BUILD_ENV APP_NAME etc (a lot more) If I go to "Build with parameters" I can input the values I want - everything good so ...
0
votes
0answers
10 views

Jenkins not detecting java on ubuntu, how to fix that?

Downloaded adopt openjdk version 8 and extracted on the machine. Set the path variable and JAVA_HOME in /etc/environment and /etc/bash.rc also. JAVA_HOME="/home/adminuser/Desktop/jdk8u282-b08&...
0
votes
1answer
68 views

Jenkins vs shell scripts

why would Jenkins get a different result from shell scripts(redhat 7) alone? I have shell scripts that run fine if I execute them from a terminal, however when I run the scripts from Jenkins they get ...
0
votes
0answers
49 views

how to run azure cli command from a jenkins docker container

I have a host with az CLI and Docker engine installed. Started a Jenkins container from jenkinsci/blueocean with /usr/bin/az:/usr/bin/az mapping. I also mapped all the Python paths to container. ...
0
votes
0answers
15 views

How to authenticate jenkins with aws directory services?

AWS has directory service which will create AD accounts to use with. My jenkins server is hosted on an ec2 linux instance on AWS server. Is there any way to set the jenkins to use the AD accounts to ...
0
votes
0answers
17 views

How to generate password reset link to jenkins users after account creation?

We have option to enable create user link in jenkins. But the users are not following standards. So, we thought to create user ourself and generate a password reset link to user email. Can anyone ...
0
votes
1answer
21 views

How to get user details from other jenkins server?

We have a jenkins server hosted locally which contains build jobs both development and other environments. It contains many other deployment jobs also. So, we created one more jenkins server and moved ...
0
votes
1answer
46 views

How to see history of artifacts in jenkins?

I can see the last successful build artifact in jenkins once I open the job page. artifact How, to get previous build artifacts?
0
votes
0answers
108 views

How to fix error while connecting to jenkins windows slaves

While connecting windows node to jenkins, I am getting below error. So, I tried running with jar file instead of jnlp but got below error. -- SEVERE: [JNLP4-connect connection to ip-172-31-6-4.us-...
0
votes
0answers
13 views

How to configure Jenkins to see Reports correctly?

How to configure Jenkins to see Reports correctly? Now these reports looks like this: Something is wrong with the Maven Site and other reports on Jenkins
0
votes
0answers
46 views

Sonatype Nexus doesn't update single git submodule

I have this setup: -a git repository called MyRepo. This repo has 5 submodules (A,B,C,D,E) -a Jenkins instance that auto-builds MyRepo. On post-build steps there's a simple script that executes: #!/...
0
votes
1answer
67 views

jenkins groovy file steps management : make steps continue on previous errors

hello I uses a jenkins groovy file to manage steps of my pipeline. structure is just like : > ``` > > 2 pipeline ...
0
votes
0answers
222 views

Jenkins: Run python script using groovy in jenkins extended choice parameter

I'm new to python and groovy.Jenkins version i'm using is Jenkins 2.263.1. My problem statement: I have a python code passed with 1 argument which returns the list of values. This is running fine in ...
0
votes
0answers
16 views

Pass parametre to template based downstream jenkins job

I have template based CICD job which cannot be edited. I am trying to pass some value from another upstreamjob (freestyle/Pipeline which I can modify) to pass the environment value in the downstream ...
0
votes
0answers
187 views

Jenkins installation fails on Ubuntu 20.04 with dpkg: error processing package jenkins (--configure)

I was trying to install Jenkins in my server Ubuntu 20.04 with the following commands wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - sudo sh -c 'echo deb http://...
1
vote
0answers
21 views

Jenkins configuration matrix limiter - subset of label

I have a matrix configuration project in Jenkins which I would like to build under two axes: label -> rhel6, rhel7 user-defined -> default, devtoolset, clang, icc Some nodes are tagged as rhel6 ...
1
vote
1answer
352 views

Can't install Jenkins 2nd time

I'm making first steps with Jenkins. It successfully installed the first time, but after adding GitHub access token and credentials and the following restart I could not log in. To resolve that I ...
0
votes
0answers
53 views

How to create create new workspace for each build throttle-concurrents

I am planning to create jenkins job along with concurrent builds. but my current scenario once job finished, workspace got deleted and pulling code from git. For another build and entire pipeline I am ...
0
votes
1answer
108 views

Jenkins - Git fetch not fetching any branches

Newly setup jenkins isn't scanning any branches. I tried the global creds and multipipeline creds as well. The creds are regular http username and passwords. Here is the log: Started [Tue Dec 08 16:...
0
votes
1answer
63 views

Is it possible to use withFolderProperties to set default value in parameters section?

In Jenkins I want to set a field in the parameters section depending on the value on a parameters set in properties folder. Each time I try to use withFolderProperties outside stages sections, I've an ...
0
votes
0answers
42 views

Jenkins won't start properly

On a freshly installed Ubuntu 20.04 I have set up Docker and installed a Jenkins instance within Docker. To do this I issued the following commands: sudo apt update mkdir jenkins sudo apt install ...
0
votes
0answers
27 views

Docker in docker volume mount doesn't work

I have the below command in my Jenkinsfile: docker run --rm -v "${WORKSPACE}":/var/cache/de --entrypoint=/usr/local/bin/pytest ${IMAGE_NAME}:${IMAGE_VERSION} -m "not require_dss" -...
0
votes
1answer
130 views

sequential deployment in multiple servers using ansible playbook

I have 8 servers as(s1,s2,s3...)which are windows servers and an ansible-playbook with tasks in roles. How do I configure host inventory and execute all these tasks in s1 then in s2 then in S3......
1
vote
3answers
180 views

Jenkins Github Branch Source Plugin Failing with Github Token after today's Github auth changes

I am currently facing an issue with Jenkins <> Github integration due to today's Github auth changes deprecating user/pass auth and the current Github branch source plugin. Deprecation info: ...
0
votes
1answer
21 views

Pass encrypted value from xml file to ms build command

I have a xml file with passwords in it. I have to pass these passwords from a xml file to password property in MSBUILD command. Can anyone guide me Xml: <?xml versio------> <configuration> ...
0
votes
1answer
134 views

Configure jenkins to deploy artifact to one of shared location (Win)

Deploy an artifact in shared location where the target is not a host but our network path on our laptop c:/sharedpath.how do we configure jenkins to deploy the artifact to the network path.
0
votes
2answers
411 views

Jenkins fails to start on Windows Server after Java Runtime update uninstalled older version of JRE

I have a Jenkins Server running on Windows Server 2012 and Java prompted me to update to a newer version (jre1.8.0_261 to jre1.8.0_271) and during that install it asked to uninstall older versions (...
1
vote
1answer
223 views

Escape characters in systemd ExecStart fail

I have the following snippet to extract a value from a jenkins server jnlp config file. It works out of the box in the terminal but not as a unit. I want a unit so I can put the value somewhere and ...
0
votes
1answer
1k views

How to run jenkins build, in multiple servers with ssh-key

Trying to figure out how can I run a Jenkins build on multiple servers with my ssh-key connection. For now I used SSH remote host plugin, but this plugin is good for 1,2,3,4.. servers and not for 100+....
0
votes
1answer
62 views

Jenkins pod failing to initialize

I am having a major problem with Jenkins pod not being able to start. This is how my kubernetes deployment looks like https://justpaste.it/8ff07 This is the log that I am getting when I investigate ...
1
vote
0answers
107 views

How to connect FTPS using jenkins and copy files there

I am trying to access FTPS site using jenkins "Publish over ftp" plugin. With winscp, I am able to connect but with with jenkins I wasn't able to. I tried with option "Use Implicit TLS&...
1
vote
3answers
4k views

Installing Jenkins on Ubuntu tells me “Package 'jenkins' has no installation candidate”

I need to install Jenkins on Ubuntu 20.4.1. I've completed the following: apt-get -y install openjdk-8-jdk (it's Java 14.0.1) wget -q -O - http://pkg.jenkins-ci.org/debian-stable/jenkins-ci.org.key | ...
0
votes
1answer
56 views

How to set up NGINX to forward incoming request to Jenkins?

I have an Azure Ubuntu 18.04 server. On the server I installed Docker and Jenkins. I want to access Jenkins from my local machine via port 8080. However, I cannot access Jenkins with the public IP ...
0
votes
0answers
275 views

Jenkins plugin dependancies failure

This is my list of plugins for jenkins: InstallPlugins: - kubernetes:1.3.1 - workflow-aggregator:2.7.3 - workflow-job:2.17 - workflow-cps:2.45 - credentials-binding - git - ...
0
votes
0answers
56 views

ZAP SCAN: Jenkins Job failed (url_not_in_context)

I have installed ZAP plugin on Jenkins and downloaded ZAP-Proxy WAR file in Jenkins Server(ubuntu) and configured as jenkins job but its giving error when I execute the Job 4051 [ZAP-ProxyThread-15] ...
0
votes
1answer
140 views

How to create jenkins admin user later?

I clicked continue as admin, so user not created, later there is no admin user option when I logged in. How to set that?
0
votes
0answers
75 views

Git pull a specific tag itself?

Because Jenkins pulls a git repo without tags, I'd like to pull the specific tag I'm interested in. Is there a syntax for this? I'm aware of git syntaxes that pull all tags, and syntaxes that pull ...
0
votes
1answer
873 views

Jenkins Pipeline: Build docker within docker container

I'm trying to do the following Checkout the code Do some prechecks using some other docker images (don't want to install these on Jenkins node) Build jar using docker image maven:3.6-jdk-8 Then run ...
0
votes
0answers
7 views

gerrit statistics - parsing message flow - script

I want to measure How long does it take from developer Uploaded patch set, to message build ok from Jenkins, as seen in gerrit message flow. I would like to parse message flow - what is the best ...
1
vote
1answer
398 views

sudo error “Either need terminal or -S option”

Running as SYSTEM [EnvInject] - Loading node environment variables. Building in workspace /var/lib/jenkins/workspace/myapp_FrontUAT using credential 27a4cc0a-d18c-4a8f-bfcd-788d481e12ed > /usr/bin/...
0
votes
1answer
96 views

Is it bad practice to use a CI server for cron/scheduled tasks

Is it considered bad practice to use something like Jenkins or Gitlab CI Pipelines to replace cron jobs? There are two downsides I can think of, giving the CI server access to all servers and having a ...
0
votes
2answers
621 views

Jenkins Integration with Android studio

Descrip : I created a jenkins job to integrate jenkins with Android studio for generating artifacts, While building the project in Android studio, The build is successfull.. But When i build the same ...
0
votes
1answer
93 views

NGINX is forwarding HTTPS-traffic on some url's incorrectly to HTTP on port 443

This is a Docker container with NGINX and Jenkins in the same container, running with supervisord. The Docker container is running behind an ELB in AWS ECS. NGINX is supposed to forward traffic from ...
0
votes
0answers
108 views

Jenkins Docker in Docker fails silently when pushing image to Harbor

I am using Jenkins with the Docker Workflow Plugin and the "docker in docker" image to build and push my custom images into my internal Harbor server. This is all running in the same k8 ...
1
vote
1answer
136 views

ssh -p 29418 user@samehostip fails

I am setting up jenkins and gerrit on the same host, and one thing I need is to have gerrit and jenkins communicate with each other. When I add the ip address of the host (say 10.25.26.27) then I am ...
0
votes
0answers
17 views

Jenkins Device Health Manager

I have a dream where Jenkins can choose a resource from the pool, run a quick health check on it to see if it's in a good state, and if it fails the health check, the device is removed from the pool ...

1
2 3 4 5
12