jenkins-plugins

Why the ClearCase UCM plugin in Jenkins is unable to find any baseline?

扶醉桌前 提交于 2020-01-02 08:19:12
问题 I'm trying to set up Jenkins (v1.47) to build a project using the ClearCase UCM (v1.1.2) plugin. With the following config (names changed to protect the innocent): Stream: project_dev_build@\company_pvob<br/> Component: project_tools@\company_pvob<br/> Promotion level: INITIAL I get the following output: [CCUCM] * Stream: project_dev_build@\company_pvob [CCUCM] * Component: project_tools@\company_pvob [CCUCM] * Promotion level: INITIAL [CCUCM] Removed 45 of 45 Baselines. [CCUCM] No valid

Jenkins - Dynamic Extended Choice parameter to populate multi-level multi-select list

百般思念 提交于 2020-01-02 05:41:06
问题 Is there a way to use the Dynamic (Moded) Extended Choice Parameter to bind with an Extended Choice Parameter multi-level field to populate the first level's list? For example if I had: This would bind with this field below: Either by having the first level (Choice) default with their ModedChoice selection (Choice1,Choice2,Choice3), or based on their ModedChoice selection 'Value1' would be populated (I would take the Choice level out in that case). I know the second method I mentioned can be

Working with jenkins credentials

杀马特。学长 韩版系。学妹 提交于 2020-01-02 00:49:24
问题 I want to know how to Create the credentials that can be used by Jenkins and by jobs running in Jenkins to connect to 3rd party services. 回答1: You should specify which 3rd party service you will work on. Below is an example of credentials with bitbucket I am now working with Jenkins ver. 1.568. By default, there's Credentials feature. So, if you want to add a credential, just click on Add Credentials . For example, I'd like to add SSH Username with password , so I can use it in checking out

jenkins fails after checkout with no error

北城以北 提交于 2020-01-01 15:07:42
问题 My pipeline fails periodically and this is all I see: ... [Pipeline] cleanWs [WS-CLEANUP] Deleting project workspace... [WS-CLEANUP] Deferred wipeout is used... [WS-CLEANUP] done [Pipeline] checkout Cloning the remote Git repository Cloning repository https://bitbucket.org/myteam/myrepo.git > git init C:\WS\master_sdfsdfsdf # timeout=10 Fetching upstream changes from https://bitbucket.org/myteam/myrepo.git > git --version # timeout=10 using GIT_ASKPASS to set credentials mycreds > git fetch -

boost unit tests with xUnit Plugin in Jenkins do not work

試著忘記壹切 提交于 2020-01-01 14:57:34
问题 I am not a C programmer, but i have to run boost tests on my Jenkins. Now I have installed the xUnit plugin in Jenkins. I added a post-build action : "Publish xUnit test result report" Then, in this post-build step I added : "BoostTest-1.x (default)" Now I have the following options to set: https://www.dropbox.com/s/wxcny55rz2bqk6r/boost_jenkins_options.png The options I set are random, so please help me, I don't understand anything and I didn't find some tutorials. I have not worked with

Variable substitution in Jenkins plugin

浪尽此生 提交于 2020-01-01 10:59:13
问题 I am developing a new Jenkins plugin that will be executed during the build phase of a Jenkins job and have a requirement to allow the user to specify a variable name (as opposed to a literal value) in the job configuration for the plugin. The intention is that when the job executes the variable name specified by the user will then be substituted with the real value associated with the variable and that the plugin will then use this real value when running the perform method. For example if

Access files on a node slave from Jenkins master using Groovy

冷暖自知 提交于 2020-01-01 10:16:12
问题 I am using the Jenkins Build Flow plugin to achieve parallelization. The Groovy DSL does certain file operations. Even though the option Restrict where this project can be run is set to run the job on a specific slave, the DSL runs on master. This is not intended. Could someone tell me how I can restrict the DSL to run on the specified slave? Even if there is a way we can access the slave file system via the DSL, that should work. In general, how can we access files on a node slave from

Guice injection in a jenkins plugin?

我的未来我决定 提交于 2020-01-01 10:14:56
问题 I just wrote this wiki page on how to do dependency injection in a plugin: https://wiki.jenkins-ci.org/display/JENKINS/Dependency+Injection I want to use this so that I can provide a move requests to external resource to a service class and pass a mock to my Publisher during unit tests. The problem with the example I gave in the wiki is that I cannot provide a mock easily: @Override public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) { Guice

How to configure Test Result Analyzer plugin on Jenkins

守給你的承諾、 提交于 2020-01-01 08:57:25
问题 I installed Test Result Analyzer plugin in Jenkins but getting message: No build data retrieved. You may need to select a Module. After the plugin is installed - what are my next steps to get it working? Is it necessary to enable "Publish TestNG results" plugin? thanks 回答1: I have faced this problem since yesterday too. I think the problem is that test analyzer cannot find data to report. And below is what I did to solve it At Jenkins dashboard, select <your project> / Configure Under Post

Why are Jenkins “extended emails” not including extended information?

萝らか妹 提交于 2020-01-01 08:03:45
问题 We installed email-ext 2.24.1 into Jenkins 1.447. We set "Extended Email Notification" "Default Content" to $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS: Check console output at $BUILD_URL to view the results. Failed tests (regressions compared to previous builds): ${FAILED_TESTS, onlyRegressions=true} Changes: ${CHANGES, showPaths=true, format="%a: %r %p \n--\"%m\", pathFormat="\n\t- %p"} We went to a project, and selected "Editable Email Notification" and left the default settings,