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:3.3.3’).inside { sh ‘mvn –version’ } } } But it fails with below error. 33 Answers 33 The user jenkins needs to be added … Read more

How to choose between Hudson and Jenkins? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for … Read more

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 good amount of information online about the error, but I have not gotten any to work. I’m using Sun’s JDK on Fedora Linux (not OpenJDK). Here are a few things I’ve … Read more

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 way to run the script from the Jenkinsfile without doing interactive mode? I basically have a file called script.sh that I would like to … Read more

How to restart Jenkins manually?

This question’s answers are a community effort. Edit existing answers to improve this post. It is not currently accepting new answers or interactions. 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 … Read more