Jenkins

Cloning from GitHub on Jenkins: could not load PEM client certificate

左心房为你撑大大i 提交于 2020-08-26 04:58:22
问题 I set up a build server and want to clone a project in Jenkins. I get the following error: fatal: unable to access 'https://github.com/habitat-sh/sample-node-app/': could not load PEM client certificate, LibreSSL error error:02FFF00D:system library:func(4095):Permission denied, (no key found, wrong pass phrase, or wrong file format?) It is on public GitHub, no certificates should be needed, everything is working correctly when I clone on terminal. Also, curl works without any problems. Do you

How to find out which user is accessing /var/run/docker.sock that will cause permission denied error

时光怂恿深爱的人放手 提交于 2020-08-26 04:37:47
问题 This question is different from the following questions: Docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock Because they didn't consider jenkins to be installed as docker container, here I don't have jenkins user to give that user access to this file. And also from this one docker.sock permission denied Because I don't know which user I got this error for, Here the user root has access to this file but the error happened again.

How to find out which user is accessing /var/run/docker.sock that will cause permission denied error

二次信任 提交于 2020-08-26 04:35:11
问题 This question is different from the following questions: Docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock Because they didn't consider jenkins to be installed as docker container, here I don't have jenkins user to give that user access to this file. And also from this one docker.sock permission denied Because I don't know which user I got this error for, Here the user root has access to this file but the error happened again.

Jenkins Kubernetes plugin failing to provision jnlp-slave pods

别说谁变了你拦得住时间么 提交于 2020-08-24 09:10:53
问题 I have a Kubernetes 1.10.0, Docker 17.03.2-ce, and Jenkins 2.107.1 running on an Ubuntu 17.04 VM with Kubernetes Plugin 1.5 installed in Jenkins. I have 4 other Ubuntu VM(s) successfully set up as nodes in the cluster, including the untainted master. I can deploy nginx-based services directly and have unfettered access to the dashboard. So, Kubernetes itself seems happy enough. Before you mention it, let me say that we don't have short term plans to run Jenkins master inside Kubernetes itself

How to provide a password for PostgreSQL's createdb non-interactively?

匆匆过客 提交于 2020-08-24 07:09:00
问题 I have a task in phing where before tests I drop the database if exists and create it. This is run on Jenkins. I want to do it with createdb like this: <exec command="createdb my_database" /> The thing is that the createdb is asking me to authenticate and adding -Umy_user parameter is not a problem - the issue is that I cannot specify a password in the createdb command. And I don't want to create a role for the system user ("jenkins" in this case). Is there a solution for that ? 回答1: createdb

How to provide a password for PostgreSQL's createdb non-interactively?

て烟熏妆下的殇ゞ 提交于 2020-08-24 07:08:16
问题 I have a task in phing where before tests I drop the database if exists and create it. This is run on Jenkins. I want to do it with createdb like this: <exec command="createdb my_database" /> The thing is that the createdb is asking me to authenticate and adding -Umy_user parameter is not a problem - the issue is that I cannot specify a password in the createdb command. And I don't want to create a role for the system user ("jenkins" in this case). Is there a solution for that ? 回答1: createdb

Parameter List in Jenkins to display list of build numbers from another build

让人想犯罪 __ 提交于 2020-08-24 06:57:27
问题 I have two Jenkins builds, one for compiling and one for deploying. The developer wants to be able to choose a build from the compiler build when running the deploy build, not always run the most recent build. What I am after is a method of populating a choice parameter for the deploy build with a list of successful\unstable builds from the compile build. I will then use the the option listed in the parameter to deploy that artifact. 回答1: One option is to use the Promoted Builds plugin to

Jenkins CLI List-Jobs with folders

两盒软妹~` 提交于 2020-08-23 05:05:06
问题 While using the Jenkins Folders Plugin, is there a way to get a list of all jobs (including jobs in folders and possible the folder path) simular to how list-jobs in the default CLI works? I have made a small PowerShell script to get info for the last build of every job in the default dashboard and export relevant info to excel. But now we started using folders, and it doesnt work for folders and the jobs in them. My old import code: java -jar jenkins-cli.jar -s http://localhost:8080 list

Does Jenkins windows service need admin rights?

允我心安 提交于 2020-08-23 04:05:51
问题 For security reasons we thought it would be better if the Jenkins windows service would run as user without admin rights. However, this leads to an error on Jenkins server startup: java.io.IOException: Access is denied at java.io.WinNTFileSystem.createFileExclusively(Native Method) at java.io.File.createTempFile(Unknown Source) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:142) Caused: java.io.IOException: Failed to create a temporary file in C:\Program Files (x86)\Jenkins The

Does Jenkins windows service need admin rights?

房东的猫 提交于 2020-08-23 04:05:28
问题 For security reasons we thought it would be better if the Jenkins windows service would run as user without admin rights. However, this leads to an error on Jenkins server startup: java.io.IOException: Access is denied at java.io.WinNTFileSystem.createFileExclusively(Native Method) at java.io.File.createTempFile(Unknown Source) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:142) Caused: java.io.IOException: Failed to create a temporary file in C:\Program Files (x86)\Jenkins The