jenkins-plugins

How to setup credentials for every project in Jenkins?

折月煮酒 提交于 2019-12-18 09:03:14
问题 I have some 10 projects in my Jenkins , each for 10 different clients . So i need to create credentials for all my projects , so that each client can access only their project . Is there any plugin to achieve my requirement .?? Please Help !!! 回答1: Select "Project-based Matrix Authorization Strategy" under Global Security Define general users, without access to projects at this level. Then on per-project select "Enable project-based security", and here you can give individual users addition

Jenkins Multibranch pipeline: What is the branch name variable?

对着背影说爱祢 提交于 2019-12-18 03:02:01
问题 I'm new to the Jenkins Pipeline plugin, and especially new to the multibranch pipeline plugin. In a standard build I have access to the $GIT_BRANCH variable to know which branch is being built. However that variable isn't set in the multibranch pipeline. I have tried env.GIT_BRANCH too, and I tried to pass $GIT_BRANCH as a parameter to the build. Nothing seems to work. I assumed that since the build knows about the branch being built (I can see the branch name at the top of the console output

add build parameter in jenkins build schedule

ぃ、小莉子 提交于 2019-12-18 02:19:04
问题 I have a jenkins job. i want to build my job in a specific time with a build parameter. I want to do this by using the Build periodically option. I have input like this: */1 * * * * Parameter1 If I do this, jenkins show an error. Is this possible without using any plugin . if not, than which plugin will be better Alternatively is there a way to give parameter's here in the schedule? My actual requirement is like this: build in morning using one parameter build in evening using another

Jenkins deploy war file to Tomcat 8

两盒软妹~` 提交于 2019-12-17 18:29:20
问题 I'm running Jenkins 1.6 (and also tried with Jenkins 2.0) on the same server where I have Tomcat 8. I need to deploy Maven multimodule application to Tomcat webapp. It has two war files from submodules that has to be deployed. Deploy plugin supports Tomcat up to 7, and it's work fine. However, the problem is that I need to use Tomcat 8, since my web application is not working on Tomcat 7. Is it possible to deploy war files from Jenkins to Tomcat 8? 回答1: Answer to your question Tomcat 7 deploy

Jenkins-Build when a change is pushed to GitHub option is not working

眉间皱痕 提交于 2019-12-17 10:26:37
问题 Jenkins is running on localhost. I have my repository in GitHub. I have the option to 'Build when a change is pushed to GitHub' checked. When I click 'Build Now', build is done successfully, no issues there. But when am committing code to my repository, auto build is not happening. I can access GitHub from my system as the repository is public and I believe even Jenkins should be able to detect it. I know there is a polling option but I want Jenkins to build when change is detected in

How can you deploy a specific artifact from Jenkins into Nexus?

倖福魔咒の 提交于 2019-12-17 10:03:12
问题 I have a multi-module maven project running in Jenkins. I would like to deploy the final artifact (an RPM from an assembly build) to the Nexus server. I see no reason to deploy intermediate artifacts (hence no "mvn clean deploy") since this will produce extra junk on the server that I don't need. We're trying to set up a continuous delivery pipeline, so we're not deploying SNAPSHOT versions - ever. The various plugins for Jenkins seem focused on deploying all of the artifacts. How can I just

Display HTML page inside mail body with Email-ext plugin in Jenkins

大憨熊 提交于 2019-12-17 08:49:30
问题 I am new to Jenkins and i want to know how it is possible to display the html report (not the html code) generated after a successful build inside a mail body (not an attachment). I want to know the exact steps i should follow and what should be the content of my possible jelly template. 回答1: Look deeper into the plugin documentations. No need for groovy here. Just make sure Content Type is set to HTML and add the following to the body: ${FILE,path="my.html"} This will place the my.html

Protractor & Jasmine Configuration on Jenkins

五迷三道 提交于 2019-12-13 21:32:49
问题 I am trying to configure Protractor on Jenkins for CTI.... I have already setup Protractor along with Jasmine and trying to get it integrated with Jenkins. I have gone through several links & blogs on internet but none seem to be helpful in providing detailed information on how to get the Protractor configured with Jenkins. Any help or pointing towards the right blog or video will be really appreciated. Thanks 回答1: @Vishal Please find the below snippet you can add as grunt task. 'use strict';

Send command from TeamCity to run automation tests on Jenkins

霸气de小男生 提交于 2019-12-13 17:23:17
问题 Is there a way to add a build step in TeamCity which sends a request to Jenkins server, run some automation test scripts in Jenkins and sends back a response to Teamcity. The idea basically is to automate the whole deployment process which also includes running of some automation tests created using python scripts (which will be done on Jenkins). I am not sure if this is the best way of doing it but are there any better ways to achieve this? Also any hints on how to send command from Teamcity

How to bundle jenkins plugins into jenkins.war

不问归期 提交于 2019-12-13 15:30:14
问题 I'm trying to bundle some plugins into Jenkins.war, but I'm unsure how to exactly. I've been referencing this page: https://wiki.jenkins-ci.org/display/JENKINS/Bundling+plugins+with+Jenkins, but I'm confused about the specifics. If I just move the .hpi files from the plugins I want into /WEB-INF/plugins/, what other steps would I have to do to actually get a new .war file? Should I run the pom file provided, and if so, where/how should I run it? Anything else I should make sure I do? 回答1: If