Skip to main content

CI/CD Collective

Questions

Browse questions with relevant CI/CD tags

114,393 questions

814 votes
31 answers
1.0m views

How to restart Jenkins manually?

I've just started working with Jenkins and have run into a problem. After installing several plugins it said it needs to be restarted and went into a "shutting down" mode, but never restarts. How do ...
Kerry Jones's user avatar
  • 21.8k
625 votes
52 answers
1.1m views

Error - trustAnchors parameter must be non-empty

I'm trying to configure my e-mail on Jenkins/Hudson, and I constantly receive the error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty I've seen a ...
David Gill's user avatar
  • 8,661
628 votes
46 answers
901k views

Docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock

I am new to docker. I just tried to use docker in my local machine(Ubuntu 16.04) with Jenkins. I configured a new job with below pipeline script. node { stage('Build') { docker.image('maven:...
Ponsuyambu's user avatar
  • 9,176
1007 votes
23 answers
1.4m views

npm check and update package if needed

We need to integrate Karma test runner into TeamCity and for that I'd like to give sys-engineers small script (powershell or whatever) that would: pick up desired version number from some config file (...
iLemming's user avatar
  • 36.8k
1012 votes
18 answers
799k views

Error "The input device is not a TTY"

I am running the following command from my Jenkinsfile. However, I get the error "The input device is not a TTY". docker run -v $PWD:/foobar -it cloudfoundry/cflinuxfs2 /foobar/script.sh Is there a ...
Anthony's user avatar
  • 36.4k
427 votes
35 answers
473k views

How to get the current branch within GitHub Actions?

I'm building Docker images with GitHub Actions and want to tag images with the branch name. I found the GITHUB_REF variable, but it results in refs/heads/feature-branch-1 and I need only feature-...
aborilov's user avatar
  • 9,074
882 votes
9 answers
605k views

What is the difference between "npm install" and "npm ci"?

I'm working with continuous integration and discovered the npm ci command. I can't figure what the advantages are of using this command for my workflow. Is it faster? Does it make the test harder,...
Diagathe Josué's user avatar
270 votes
31 answers
308k views

How to stop an unstoppable zombie job on Jenkins without restarting the server?

Our Jenkins server has a job that has been running for three days, but is not doing anything. Clicking the little X in the corner does nothing, and the console output log doesn't show anything either. ...
blokkie's user avatar
  • 5,665
250 votes
25 answers
421k views

How to reset Jenkins security settings from the command line?

Is there a way to reset all (or just disable the security settings) from the command line without a user/password as I have managed to completely lock myself out of Jenkins?
ryanzec's user avatar
  • 28.2k
334 votes
19 answers
409k views

Export/import jobs in Jenkins

Is it possible to exchange jobs between 2 different Jenkins'? I'm searching for a way to export/import jobs.
Konstantin Milyutin's user avatar
200 votes
38 answers
109k views

Delete a workflow from GitHub Actions

I created a couple workflows in the .github/workflows folder of my repository to experiment with GitHub Actions. I have since learned quite a bit and deleted said experimental workflows from my repo. ...
skålfyfan's user avatar
  • 5,401
223 votes
29 answers
199k views

Maven dependencies are failing with a 501 error

Recently Maven build jobs running in Jenkins are failing with the below exception saying that they couldn't pull dependencies from Maven Central and should use HTTPS. I'm not sure how to change the ...
Arunan 's user avatar
  • 3,524
370 votes
19 answers
85k views

Branch descriptions in Git

Is there a way in Git to have a 'description' for branches? While I try to use descriptive names, working for a while on a single branch sometimes dampens my memory of why I made some of the other ...
Noufal Ibrahim's user avatar
219 votes
24 answers
199k views

Android Command line tools sdkmanager always shows: Warning: Could not create settings

I use the new command line tools for Android because the old sdk-tools repository of Android isn't available anymore. So I changed my gitlab-ci to load the commandlintools. But when I try to run it I ...
kaulex's user avatar
  • 3,286
157 votes
30 answers
197k views

GitHub Action workflow not running

I have a GitHub action workflow file @ myrepo/.github/workflows/Build Webpage.yml it contains this: name: Webpage Build on: push: branches: - webpage jobs: build: runs-on: ...
KieranLewin's user avatar
  • 2,390
415 votes
12 answers
163k views

Continuous Integration vs. Continuous Delivery vs. Continuous Deployment

What is the difference between these three terms? My university provides the following definitions: Continuous Integration basically just means that the developer's working copies are synchronized ...
pygumby's user avatar
  • 6,840
240 votes
23 answers
127k views

How to resolve "refusing to allow an OAuth App to create or update workflow" on git push

Getting refusing to allow an OAuth App to create or update workflow .github/workflows/cd.yml without workflow scope" on git push. How to grant workflow scope?
Ara Yeressian's user avatar
479 votes
7 answers
656k views

Change email address in Git

I have a project hosted in Git stash (now rebranded as Bitbucket Server). It is built using Jenkins. Now I made a typo while installing my Git locally. Like @ab.example instead of @abc.example After ...
mani_nz's user avatar
  • 5,882
383 votes
10 answers
1.1m views

How do I schedule jobs in Jenkins?

I added a new job in Jenkins, which I want to schedule periodically. From Configure job, I am checking the "Build Periodically" checkbox and in the Schedule text field added the expression: 15 13 * ...
Sangram Anand's user avatar
388 votes
10 answers
704k views

How do I get the output of a shell command executed using into a variable from Jenkinsfile (groovy)?

I have something like this on a Jenkinsfile (Groovy) and I want to record the stdout and the exit code in a variable in order to use the information later. sh "ls -l" How can I do this, especially ...
sorin's user avatar
  • 173k
223 votes
23 answers
224k views

How to get a list of installed Jenkins plugins with name and version pair

How can I get a list of installed Jenkins plugins? I searched the Jenkins Remote Access API document, but it was not found. Should I use Jenkins' CLI? Is there a document or example?
user1284795's user avatar
  • 2,401
456 votes
8 answers
208k views

How to choose between Hudson and Jenkins? [closed]

It took me an hour or so to work out Hudson has only branched recently (Jan/2011) I have no idea how rapid the change of each branch is now, but more importantly, what is the direction each branch is ...
Greg Domjan's user avatar
  • 14.2k
323 votes
16 answers
250k views

How can I test a change made to Jenkinsfile locally?

When writing jenkins pipelines it seems to be very inconvenient to commit each new change in order to see if it works. Is there a way to execute these locally without committing the code?
sorin's user avatar
  • 173k
411 votes
9 answers
321k views

How to run a github-actions step, even if the previous step fails, while still failing the job

I'm trying to follow an example Github has for testing my build with github actions, and then compressing the test results and uploading them as an artifact. https://help.github.com/en/actions/...
Tomer Shemesh's user avatar
284 votes
16 answers
782k views

How to set environment variables in Jenkins?

I would like to be able to do something like: AOEU=$(echo aoeu) and have Jenkins set AOEU=aoeu. The Environment Variables section in Jenkins doesn't do that. Instead, it sets AOEU='$(echo aoeu)'. ...
Noel Yap's user avatar
  • 20k
276 votes
11 answers
190k views

How to shutdown an app deployed on Heroku?

I have an app on Heroku which is being used by few users. However, I notice there are some data issues which I'd like to fix and stop the app in the mean time so users don't enter anything new. Is ...
yuri's user avatar
  • 2,951
222 votes
22 answers
377k views

Jenkins Host key verification failed

I have a problem with jenkins, setting "git", shows the following error: Failed to connect to repository : Command "git ls-remote -h https://[email protected]/person/projectmarket....
A. M. Mérida's user avatar
302 votes
12 answers
301k views

How do I clone a job in Jenkins?

Jenkins has the Gerrit Plugin in place so that when we do check-ins to Gerrit, Jenkins performs a build and if it succeeds, then the modification in Gerrit is verified. If the build fails then it is ...
GregH's user avatar
  • 13k
399 votes
4 answers
402k views

Running actions in another directory

I've just started exploring Github actions however I've found myself placing a command in multiple places. I have a PHP project where the composer.json is not in the root, my structure looks like: ...
MylesK's user avatar
  • 4,659
335 votes
13 answers
308k views

How can I run GitHub Actions workflows locally?

I am planning to move our Travis CI build to GitHub Actions using Docker for our per-commit testing. Can I reproducibly run these new GitHub Actions workflows locally? Is there a generic way to run ...
William Entriken's user avatar
194 votes
19 answers
239k views

Failed loading english.pickle with nltk.data.load

When trying to load the punkt tokenizer... import nltk.data tokenizer = nltk.data.load('nltk:tokenizers/punkt/english.pickle') ...a LookupError was raised: > LookupError: > ***************...
Martin's user avatar
  • 1,943
294 votes
12 answers
296k views

Only run job on specific branch with GitHub Actions

I'm relatively new to GitHub Actions and I have 2 jobs–one that runs my tests, and one that deploys my project onto a server. Obviously I want the tests to run on every branch, but deploying should ...
weakdan's user avatar
  • 3,196
224 votes
16 answers
344k views

Error acquiring the state lock: ConditionalCheckFailedException

I got the following error during a terraform plan which occured in my pipeline: Error: Error locking state: Error acquiring the state lock: ConditionalCheckFailedException: The conditional request ...
veben's user avatar
  • 22.7k
191 votes
15 answers
362k views

Jenkins Pipeline Wipe Out Workspace

We are running Jenkins 2.x and love the new Pipeline plugin. However, with so many branches in a repository, disk space fills up quickly. Is there any plugin that's compatible with Pipeline that I ...
qmo's user avatar
  • 3,196
155 votes
24 answers
225k views

Where do I find the project ID for the GitLab API?

I use GitLab on their servers. I would like to download my latest built artifacts (build via GitLab CI) via the API like this: curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https:...
Hubert Ströbitzer's user avatar
172 votes
21 answers
304k views

How to list all `env` properties within jenkins pipeline job?

Given a jenkins build pipeline, jenkins injects a variable env into the node{}. Variable env holds environment variables and values. I want to print all env properties within the jenkins pipeline. ...
JamesThomasMoon's user avatar
118 votes
32 answers
425k views

Jenkins: 403 No valid crumb was included in the request

I configured Jenkins in Spinnaker as follows and setup the Spinnaker pipeline. jenkins: # If you are integrating Jenkins, set its location here using the baseUrl # field and provide the ...
Balkrishna's user avatar
  • 3,141
185 votes
23 answers
348k views

How to solve npm install throwing fsevents warning on non-MAC OS?

Following warning is being thrown on npm install command - npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\rea ct-scripts\node_modules\fsevents): npm WARN notsup SKIPPING ...
Sandeepan Nath's user avatar
181 votes
15 answers
257k views

don't fail jenkins build if execute shell fails

As part of my build process, I am running a git commit as an execute shell step. However, if there are no changes in the workspace, Jenkins is failing the build. This is because git is returning an ...
Ben's user avatar
  • 16.6k
178 votes
15 answers
227k views

Could not find com.android.tools.build:gradle:3.0.0-alpha1 in circle ci

I updated the gradle plugin to the latest version : com.android.tools.build:gradle:3.0.0-alpha1 and this error occured in AS: export TERM="dumb" if [ -e ./gradlew ]; then ./gradlew test;...
Mohamed ALOUANE's user avatar
295 votes
7 answers
442k views

Turning Sonar off for certain code

Is it possible to turn off sonar (www.sonarsource.org) measurements for specific blocks of code, which one doesn't want to be measured? An example is the "Preserve Stack Trace" warning which Findbugs ...
Ant Kutschera's user avatar
264 votes
11 answers
272k views

Use GitLab CI to run tests locally?

If a GitLab project is configured on GitLab CI, is there a way to run the build locally? I don't want to turn my laptop into a build "runner", I just want to take advantage of Docker and .gitlab-ci....
Matthieu Napoli's user avatar
150 votes
21 answers
279k views

How to remove a TFS Workspace Mapping?

I had a project in tfs within a team project then we moved the project to a different location in another team project. I had configured Jenkins to connect to the team project and build my solution ...
The Light's user avatar
  • 27.2k
146 votes
18 answers
296k views

How to start jenkins on different port rather than 8080 using command prompt in Windows?

I have jenkins.war and I started it from command prompt in Windows as: java -jar jenkins.war It was started well and easily browsed as http://localhost:8080 I want to start on 9090 port. How can I ...
user avatar
247 votes
7 answers
153k views

GitHub Actions: Split Long Command into Multiple Lines

I have a Github action command that is really long: name: build on: [push] jobs: build: runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v1 - name: ...
Bojian Zheng's user avatar
  • 2,957
155 votes
18 answers
108k views

Azure DevOps: User lacks permission to complete this action. You need to have 'AddPackage'

I get an error: User XXX lacks permission to complete this action. You need to have 'AddPackage' when trying to push a nuget package to Azure DevOps artifacts. I am the administrator This is the ...
diegosasw's user avatar
  • 16k
157 votes
20 answers
632k views

gpg: no valid OpenPGP data found

I am trying to install Jenkins on Ubuntu 13.10 and I am getting the above mentioned error when i try to run the following command: wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | ...
dummy's user avatar
  • 1,741
137 votes
22 answers
189k views

Jenkins - HTML Publisher Plugin - No CSS is displayed when report is viewed in Jenkins Server

I have a strange problem with the Jenkins HTML Publisher plugin, wherein all the fancy CSS I have added to the report is stripped out when viewed in Jenkins. If I download the report to local, I am ...
Vall's user avatar
  • 4,046
239 votes
13 answers
281k views

How to Publish Web with msbuild?

Visual Studio 2010 has a Publish command that allows you to publish your Web Application Project to a file system location. I'd like to do this on my TeamCity build server, so I need to do it with the ...
jrummell's user avatar
  • 43.2k
212 votes
14 answers
141k views

Show current state of Jenkins build on GitHub repo

Is there a way to show the Jenkins build status on my project's GitHub Readme.md? I use Jenkins to run continuous integration builds. After each commit it ensures that everything compiles, as well ...
Jasper Blues's user avatar
  • 28.9k


15 30 50 per page
1
2 3 4 5
2288