jenkins-plugins

Jenkins job triggered twice

不想你离开。 提交于 2019-12-13 03:57:06
问题 1) I am using Jenkins API to trigger a job, so when my monitoring tool sensu sends request Jenkins API to trigger jenkins JOb the build starts. 2) I have tried even manually by hitting buildnow instead of using API calls to make sure that it is not API call problem. What does my build contain? It runs on Master and runs a ansible play-book with help of ansible plugin Problem: Once the build is complete it is successful it automatically triggers another build with no reason again and runs the

How to create HTML report for zap(Owasp) using Python API script which integrates with Jenkins

爱⌒轻易说出口 提交于 2019-12-13 03:56:05
问题 I have trigger zap with Python API as below:- Script source:- https://github.com/zaproxy/zaproxy/wiki/ApiPython I want an HTML report generated via command line. I am trying to integrate same with Jenkins. I have found few plug-ins of Owasp in Jenkins but doesn't seem to work as expected. Any idea, link, tutorials will really help me. 回答1: At this URL/API ( http://ZAP-IP:PORT/UI/core/other/htmlreport/) user can get the report. I havn't found any zap support plug-in so I have wrote selenium

How to run multi stages at the same time using multi parallel blocks?

僤鯓⒐⒋嵵緔 提交于 2019-12-13 03:45:00
问题 Here, I need to execute both Parallel test 1 and Parallel test 2 at the same time. When I tried to put a parallel block on top of these, it throws an error since it mentioned like this in the official site Note: that a stage must have one and only one of steps, stages, or parallel . pipeline { agent any stages { stage('Parallel Test 1') { parallel { stage('Block 1 - Stage 1') { steps { echo "Block 1 - Stage 1" build(job: 'jenkins_job_1') } } stage('Block 1 - Stage 2') { steps { echo "Block 1

Jenkins Build / Pipeline job - Job's listing in tree / layout ordered listing

为君一笑 提交于 2019-12-13 03:34:15
问题 Is it possible that for a given Build Pipeline job (which has downstream jobs either in the build or post build action as " Trigger build on other projects "), I can get a Tree listing view showing which Pipeline job# N called, what child jobs in the calling order (sequential or parallel) with child build# for that pipeline run build#. For ex: If my pipeline job has this view: then, I'm expecting to get a listing of the top run similar to ( in case I just put in simple text format ): vac-3.0

Jenkins Mercurial plugin does not detect changes

微笑、不失礼 提交于 2019-12-13 02:58:25
问题 When my pipeline polls the Mercurial repo for changes it does not detect any change, and new builds are not triggered. Following the plugin docs, I set up a push hook to trigger the polling, which works fine, but is not able to detect changes. All I get is Mercurial Polling Log Started on May 19, 2018 11:58:10 PM no polling baseline in /var/lib/jenkins/workspace/test-repo on Done. Took 0 ms No changes I am working with: - Jenkins v2.107.3 - Mercurial plugin v2.3 I just created a test

Jenkins trigger build dependent on build parameters

核能气质少年 提交于 2019-12-13 02:11:49
问题 I have a jenkins pipeline set up as follows where Build A is the start of the pipeline and on completion triggers build B and so on (see below)..So far I have implemented Build A, B and C. I have used the Jenkins Parameterized Trigger plugin as a post build action to trigger my builds. Is there anyway that I can after Build B has completed depending on what parameters the build was kicked off with fork the build after build B as shown below. Build C and Build D are deployment builds which

jenkins logstash-plugin unable to post to elasticSearch

无人久伴 提交于 2019-12-13 01:26:45
问题 I've installed the logstash-plugin for jenkins and configured it to use the indexer as elastic search. While executing the jobs I see the following error: 16:56:12 [logstash-plugin]: Failed to send log data to ELASTICSEARCH:http://localhost:9200. 16:56:12 [logstash-plugin]: No Further logs will be sent to http://localhost:9200. 16:56:12 java.io.IOException: HTTP error code: 200 16:56:12 URI: http://localhost:9200/logstash-jenkins 16:56:12 RESPONSE: HttpResponseProxy{HTTP/1.1 200 OK [Content

Jenkins Run as Specific User not working

北城余情 提交于 2019-12-13 00:58:55
问题 I am trying to get Jenkins to run jobs as specific linux Users. I have set security to use Unix authentication and installed the "Authorize Project" plugin. I have written a simple script in my ~/bin directory that sends me an email with the message "Hello $USER". In Jenkins I set up a job and use the Authorize Project plugin to select run as specific user and my username. When I try to create a build the job fails. If I look at the output console the messages say that the job has been

Cannot load JDBC driver class 'com.mysql.jdbc.Driver' sonar plugin jenkins

廉价感情. 提交于 2019-12-12 20:51:53
问题 I am using sonar plugin with jenkins. It always generates this error. It seems the plugin can't find the JDBC driver. I tried putting the JDBC driver in many possible places according to the many solutions I found in google, but it still generates this error. C:\Jenkins\tools\hudson.plugins.sonar.SonarRunnerInstallation\sonar-runner-2.4 SonarQube Runner 2.4 Java 1.7.0_21 Oracle Corporation (32-bit) Windows Server 2008 R2 6.1 x86 INFO: Runner configuration file: C:\Jenkins\tools\hudson.plugins

Is there an example of JUnit Attachments Jenkins Plugin working?

一曲冷凌霜 提交于 2019-12-12 19:37:58
问题 I have been trying for the last hour or so to get the following working. I have my attachments stored in the target directory. But they are not linked on the test pages at either the class level or the test level. I have tried every combination of the following: putting the attachment folder target/surefire-reports/[class]/ with the target /surefire-reports/[class].xml folder target/surefire-reports/[class.mothod]/ with the target/surefire-reports/[class].xml putting the attachment folder in