jenkins-plugins

Unable to point to ssh keys in ~/.ssh on Jenkins host

不打扰是莪最后的温柔 提交于 2019-12-21 04:04:52
问题 I've installed SSH Agent Plugin to pull Git repository using SSH authentication. I'd like to use SSH keys located in system file (from the Jenkins master ~/.ssh option). It's screenshot taken from official plugin's page: Unfortunately I don't see this option. I can select only "Enter directly". Please check out my screenshot. Did I configure something wrong? 回答1: This is a reletively recent change, explained in security advisory 440 : https://jenkins.io/security/advisory/2018-06-25/ SECURITY

Jenkins - Git Submodule Credentials Different from Parent Repo

╄→гoц情女王★ 提交于 2019-12-21 03:42:27
问题 Background Jenkins is being used to build an artifact from a Git repo that has a Git submodule. The submodule(s) are not in the same repo or even at the same endpoint as the parent project. The problem is that parent repo checks out fine because the credential, ssh key A, is associated with the main/parent repo but, not surprisingly, fails on the submodule because the credential, ssh key B, is not associated with the repo from Jenkins' point of view. It's surprising that Jenkins does not have

Jenkins Setup Wizard Blank Page

这一生的挚爱 提交于 2019-12-21 03:23:32
问题 I have just installed Jenkins on my RHEL 6.0 server via npm: npm -ivh jenkins-2.7.2-1.1.noarch.rpm I have also configured my port to be 9917 to avoid clashing with my Tomcat server, allowing me to access the Jenkins page at ipaddress:9917 . After entering the initial admin password at the Unlock Jenkins page, I am presented with a blank page, with the header "SetupWizard [Jenkins]". Anyone knows why am I getting a blank page, and how do I solve it? 回答1: I experienced the same problem but a

Jenkins gerrit trigger not fetching my change while building

自古美人都是妖i 提交于 2019-12-20 19:38:39
问题 I have configured jenkins with gerrit trigger plugin to validate every commit we push to gerrit. I am expecting this trigger to include my latest change with original repo and make a build. But, it is cloning only repo project and compiling without my change. Below is my configuration settings for gerrit trigger in jenkins. Refspec: $GERRIT_REFSPEC Branches to build: $GERRIT_BRANCH Build trigger: Gerrit event Trigger on: patch set created Gerrit project: added project and branch Below is the

Jenkins Dynamic parameters based on previously selected parameter value

∥☆過路亽.° 提交于 2019-12-20 17:39:19
问题 Here I am basically looking for a dependency parameter. Let's say I have two dropdowns in the build parameter section. Based on the value selected from the first dropdown the possible default I want the values of the second dropdown to vary. Is there any plugin or approach to handle this requirement effectively? 回答1: This is exactly what you are looking for: https://github.com/biouno/uno-choice-plugin/wiki/Uno-Choice-Cascade-Dynamic-Choice-Parameter It seems to be a hidden gem, haven't found

Jenkins powershell plugin always builds successfully

人盡茶涼 提交于 2019-12-20 10:28:14
问题 I'm using Jenkins PowerShell plugin to build a project. However, I found that Jenkins always considers my build successful no matter what I type inside Windows PowerShell command. Here's an example: As you can see, asdf isn't a legal command. Jenkins should give me FAILURE after the build. But the console output gives me: Started by user admin Building in workspace C:\Users\Administrator\.jenkins\jobs\Test\workspace [workspace] $ powershell.exe -NonInteractive -ExecutionPolicy ByPass "& 'C:

GIT SCM configuration for bitbucket pull requests checkout using generic Webhook parameters

拈花ヽ惹草 提交于 2019-12-20 07:46:43
问题 This stackoverflow page can help you checkout bitbucket pull requests in Jenkins with Generic webhook trigger. Pre-requisites: Jenkins: 1) Installing Generic Webhook Trigger Plugin and Bitbucket plugin in Jenkins 2) Configuring 'Bitbucket Endpoints' in Jenkins configuration. 3) Creating sample 'Pipeline' job in Jenkins (can configure Generic webhook plugin / configure bitbucket repo / include custom Jenkins file path) Bitbucket: 4) Configuring Webhook in bitbucket repo to connect to Jenkins

Can two different jenkins builders exist in the same hpi and share the same global configuration?

浪子不回头ぞ 提交于 2019-12-20 05:43:36
问题 I need to create two different Jenkins Builder classes. Each does different things and each requires its own .jelly, however, both require the same global configuration (global.jelly) which specifies a host and some user credentials. Instances of both builder types, during their perform(), will connect to the host (specified in the global configuration) using the credentials (also specified in the global configuration). The problem is that in Jenkins you place the resources of each builder in

Unable to set up “Sonar Gerrit” Jenkins plugin

走远了吗. 提交于 2019-12-20 04:07:23
问题 I am trying to set up Sonar Gerrit - Jenkins Plugin on a Jenkins job. Context A Jenkins job is launched when a patch set is created to Gerrit Source are pulled with git, cppcheck analysis is launched and a sonar analysis is launched on preview mode. Post-Build action "Post SonarQube issues as Gerrit comments" is launched. Here are the Jenkins analysis logs for the third point. Getting Sonar Report from: [XX].sonar\sonar-report.json Report has loaded and contains 2950 issues Connected to

spring-core dependency version error with a Jenkins Plugin

假装没事ソ 提交于 2019-12-20 02:11:11
问题 I'm trying to make a Jenkins plugin that uses a library that requires spring-core 3.2.2 (cloudfoundry-client-lib). I simply used the mvn command to create a skeleton plugin, then added my Maven dependency to pom.xml and a few simple code lines that uses the library. I'm not getting any problem running the skeleton plugin without my dependency. Upon compiling with "mvn package", I'm getting a test error: WARNING: Failed to scout hudson.security.PAMSecurityRealm java.lang.InstantiationException