jenkins-plugins

Why do I see a “force promotion” button when using the Jenkins Promoted Builds plugin?

荒凉一梦 提交于 2019-12-23 03:15:09
问题 When using the Jenkins Promoted Builds plugin, why do I see a "Force promotion" option? It sometimes appears either instead of or in addition to the expected "Approve" button. 回答1: The "Force Promotion" button seems to appear when you are not an "official" approver for a manual approval step or some other promotion condition has not yet been met - and you have the "Promotion" permission associated with your Jenkins role. In addition, for at least some roles providers (like Cloudbees RBAC),

Jenkins job DSL plugin - hidden parameter

喜欢而已 提交于 2019-12-23 00:26:13
问题 I am using the Jenkins hidden parameter plugin but I cant find the syntax to write it in DSL like I am doing with other parameters. For example: https://jenkinsci.github.io/job-dsl-plugin/#method/javaposse.jobdsl.dsl.helpers.BuildParametersContext.activeChoiceParam Is there any way to reflect hidden parameter in DSL? 回答1: Job DSL has no built-in support for the Hidden Parameter plugin, so it's not mentioned in the API viewer. But it's supported by the Automatically Generated DSL: job('example

QTP to Jenkins integration help need CI

China☆狼群 提交于 2019-12-22 18:37:39
问题 We have to run QTP VB Scripts from Jenkins being as a part of CI Can any one suggest me what is the best way to integrate ? Advanced thanks Thanks 回答1: Jenkins can run anything you can run from the command line, and you can create QTP Automation objects : Dim Application Set Application = CreateObject("QuickTest.Application") Application.Launch Application.Visible = True Application.Open "testfile", True Dim Test Set Test = Application.Test Test.Run If you search for quicktest.application you

Live feed of jenkins job progress bar

那年仲夏 提交于 2019-12-22 18:14:05
问题 I am looking for a way to display the build progress bar of a build in jenkins to be able to display on my application. I havent been able to find any API calls to narrow this down, so i am looking for direction! This was the closest post i found on this task, but it only shows you a duration after the build is complete. how to get progress bar data for a running jenkins job through the API 来源: https://stackoverflow.com/questions/48455608/live-feed-of-jenkins-job-progress-bar

Jenkins Github Plugin - Triggering a Parameterized Build

孤人 提交于 2019-12-22 18:03:07
问题 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

Jenkins Github Plugin - Triggering a Parameterized Build

我的梦境 提交于 2019-12-22 18:01:05
问题 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

How to send an email to requester only if the build is triggered manually?

爱⌒轻易说出口 提交于 2019-12-22 14:43:08
问题 I would like to configure a project in Jenkins to send emails to the recipients group for regular scheduled builds, but only to the requester in case the build is triggered manually. Is this possible? 回答1: You should be able to accomplish this by using the "Script - After Build" trigger of the Editable Email Notification post-build action. You can run a groovy script, with the last line evaluating to a Boolean, which determines whether or not to send the email. The screenshot below shows the

Jenkins Pipeline - SVN polling

China☆狼群 提交于 2019-12-22 11:37:10
问题 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

change jenkins workspace and attach file with email using jenkins email-ext plugin

百般思念 提交于 2019-12-22 10:48:12
问题 I am new to jenkins and i want to add my test report with the email attachment. I am using Email-ext plugin to send email. Email is sent successfully but the attached file is not sent. My test report generates in eclipse porject workspace inside and path is E:\eclipse_environment\workspace\smautomation_jenkin\assets\chromeTestReport\ how i can attache my test file with email using this plug-in? 回答1: I am using mac and my solution works for mac.But i think the concept will be same for all os.

Ansible jenkins_plugin module returns “HTTP Error 403: No valid crumb was included in the request”

99封情书 提交于 2019-12-22 10:40:38
问题 I am using Ansible (v 2.8) as the provisioner behind a Packer template to build an AMI for a Jenkins master node. For previous versions, the playbook passed successfully. However, as of Jenkins version 2.176.3, the jenkins_plugin module has been throwing: HTTP Error 403: No valid crumb was included in the request I have retrieved the crumb and registered it in a variable. I have tried passing it to jenkins_plugin with the http_agent field, but that doesn't work. I tried using attributes , but