jenkins-plugins

Unable to start container from jenkins

空扰寡人 提交于 2019-12-06 15:06:54
In Jenkins I installed Docker build step plugin. In Jenkins, created job and in it, executed docker command selected build image. The image is created using the Dockerfile.The Dockerfile is : FROM ubuntu:latest #OS Update RUN apt-get update RUN apt-get -y install git git-core unzip python-pip make wget build-essential python-dev libpcre3 libpcre3-dev libssl-dev vim nano net-tools iputils-ping supervisor curl supervisor WORKDIR /home/wipro #Mongo Setup RUN curl -O http://downloads.mongodb.org/linux/mongodb-linux-x86_64-3.0.2.tgz && tar -xzvf mongodb-linux-x86_64-3.0.2.tgz && cd mongodb-linux

Jenkins Github Plugin - Triggering a Parameterized Build

风流意气都作罢 提交于 2019-12-06 13:57:32
I have a "Freestyle project" Jenkins job that has a single parameter-- GIT_BRANCH so that I can trigger it manually or via a GitHub hook. The problem is that the GitHub plugin doesn't seem to correctly identify / set the branch that was pushed. When I look at the "GitHub Hook Log" view on the Jenkins build, I see (timestamps don't match because I've resent the hook); Last GitHub Push Started on Jul 5, 2016 11:37:01 AM Using strategy: Default [poll] Last Built Revision: Revision 7c4xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (refs/remotes/origin/rc) using GIT_SSH to set credentials > git --version #

Selenium grid and Jenkins configuration

廉价感情. 提交于 2019-12-06 13:00:58
问题 I have downloaded Selenium Grid plugin for Jenkins, and I have two nodes running: java -jar selenium-server-standalone-2.41.0.jar -role node -hub http://jenkins.bla.bla.com:4444/grid/register. In Jenkins, in Selenium Grid tab I can see the two nodes connected: http://xxx.xxx.xx.xxx:5555 (*firefox 5/5, *googlechrome 5/5, *iexplore 1/1, chrome 5/5, firefox 5/5, internet explorer 1/1) http://xxx.xxx.xx.xxx:5555 (*firefox 5/5, *googlechrome 5/5, *iexplore 1/1, chrome 5/5, firefox 5/5, internet

“Analysis collector” or “SONAR” for Jenkins?

自古美人都是妖i 提交于 2019-12-06 12:14:55
问题 I'm looking at adding static code analysis to our Jenkins builds of a Java project (~500K lines of code). Two possibilities are Analysis Collector or SONAR. One advantage of SONAR looks to be it can show dead code and deprecated methods. Recommendations? 回答1: Sonar is not just a tool to integrate other tools in a unified environment. First with Sonar you can analyze not just Java source code but code developed in more than 20 languages. http://www.sonarsource.com/products/plugins/languages/

Putting a wildcard/regex expression in node/label restriction in Jenkins

不想你离开。 提交于 2019-12-06 10:56:39
In job configuration, there is a checkbox "Restrict where this project can be run". If you select it, there is an input field about Label Expression. Is there a way to insert of regex there, and not the exact name? If yes, could you provide an example of this? The whole concept behind this, is that I want to assign restrict jobs to slaves that are created automatically, with similar names I don't believe that field can handle regular expressions, but you don't have to specify the name of the slave; you can specify a label associated with the slave. When you create the slave, assign a label (or

Jenkins Pipeline - SVN polling

别说谁变了你拦得住时间么 提交于 2019-12-06 10:51:06
I have a Jenkins pipeline template which uses a Jenkins file in Subversion. The Jenkins file has the svn checkout method to check out the real application. (The svn url of real application is passed from jenkins env variables) I need to do the svn polling of the real application and trigger the job when there is a change in real application. When I use the polling option in jenkins template , it always do the polling of JenkinsFile in Subversion. Is there any way that I can poll the real application? Use a freestyle job to poll (with depth empty) your real application via svn. In this

Sparse Checkout with Jenkins DSL Plugin?

帅比萌擦擦* 提交于 2019-12-06 08:17:20
Does anyone have a code sample for the correct configure { ... } block needed in the Jenkins DSL plugin to set up a git sparse checkout? It appears as if the config.xml section looks like this: <extensions> <hudson.plugins.git.extensions.impl.CloneOption> <shallow>false</shallow> <reference>/build/jenkins/codebase.git</reference> </hudson.plugins.git.extensions.impl.CloneOption> <hudson.plugins.git.extensions.impl.SparseCheckoutPaths> <sparseCheckoutPaths> <hudson.plugins.git.extensions.impl.SparseCheckoutPath> <path>BillOfMaterials.yml</path> </hudson.plugins.git.extensions.impl

Google OAuth plugin for jenkins

别说谁变了你拦得住时间么 提交于 2019-12-06 08:00:15
I have installed the Google Login plugin on Jenkins 2.86: https://wiki.jenkins.io/display/JENKINS/Google+Login+Plugin and followed this guide: Login to the Google Developers Console Create a new project Under APIs & Auth -> Credentials, Create a new Client ID The application type should be "Web Application" The authorized redirect URLs should contain ${JENKINS_ROOT_URL}/securityRealm/finishLogin Enter the created Client Id and secret into the fields below. using the information from the google console: In the Jenkins Global security configuration: But when I logout and login I get the error:

Jenkins: How to get node name from label to use as a parameter

隐身守侯 提交于 2019-12-06 07:45:51
I need to give a server name to a maven build. During the maven build this server name will be used to make a call that server do some tests on that server. Our servers have jenkins slaves on them and is grouped using labels Example Slaves/Node | Label Server1 | BackEndServers Server2 | BackEndServers Server3 | FrontEndServers Server4 | FrontEndServers With Elastic Axis plugin i can say run my Jenkins job on this Node Label (for example on BackEndServers) and the same project will be executed on both of the servers (Server1 & Server2). In my case I cannot do this as maven is not installed on

Jenkins Pipeline and stash Pull Request Builder not working on PR create/update

大兔子大兔子 提交于 2019-12-06 06:57:14
问题 Below is the requirement needed to achieve using the Jenkins Pipeline and i am new bee into Jenkins Pipeline. After completing development work and pushing his changes to Bitbucket the user creates a pull request. In order to approve a pull request we require at least one successful Jenkins build. Thereby we would like to get only the build result of the code checked in for the pull request. When a pull request is created/updated Jenkins shall be triggered automatically for real continuous