jenkins-plugins

Is there any way to get Gitlab pipeline artifacts in Jenkins?

萝らか妹 提交于 2020-12-12 02:04:27
问题 I have a project in gitlab. The project gets built for every check-in in the repo and build artifacts are created when the gitlab pipeline is successful. I want to get these build artifacts in my jenkins pipeline job. Is there any way to do that? I couldn't find any plugin in Jenkins to do this. Any help is appreciated. 回答1: The GitLab API offers this with both complete artifacts package (zip) and single files. You need a GitLab token which you can add as a Credential (secret text) and the

How can I generate html reports in jenkins

会有一股神秘感。 提交于 2020-12-06 16:57:55
问题 Image of post build action step for "Publish HTML Reports plugin" in maven based project After adding the plugin also I am getting http 404 error. Is there anything required to write any shell script or any code in pipeline to generate html reports or directly we can generate html reports? Can you please help me out in resolving the error....?? 回答1: According to documents on the plugin page, it only helps us bring the pages to Jenkins dashboard (not generate them). That means we have to

How can I generate html reports in jenkins

落爺英雄遲暮 提交于 2020-12-06 16:57:03
问题 Image of post build action step for "Publish HTML Reports plugin" in maven based project After adding the plugin also I am getting http 404 error. Is there anything required to write any shell script or any code in pipeline to generate html reports or directly we can generate html reports? Can you please help me out in resolving the error....?? 回答1: According to documents on the plugin page, it only helps us bring the pages to Jenkins dashboard (not generate them). That means we have to

How can I generate html reports in jenkins

空扰寡人 提交于 2020-12-06 16:56:26
问题 Image of post build action step for "Publish HTML Reports plugin" in maven based project After adding the plugin also I am getting http 404 error. Is there anything required to write any shell script or any code in pipeline to generate html reports or directly we can generate html reports? Can you please help me out in resolving the error....?? 回答1: According to documents on the plugin page, it only helps us bring the pages to Jenkins dashboard (not generate them). That means we have to

How to fail a Jenkins job based on pass rate threshold of testng tests

夙愿已清 提交于 2020-12-05 09:44:52
问题 We are trying to use Jenkins as our CI/CD solution, and want ability to fail a deployment if our TestNG tests do not meet a set pass rate threshold. Currently our Jenkins job executes our TestNG tests via maven, thus any test failure marks the build as failed. I.e. anything less than 100% pass rate, will fail the build job. We want ability to make it configurable - i.e. fail the test job if pass rate is below, say, 98%. Is this something i can control or configure inside the Jenkins job via

How to fail a Jenkins job based on pass rate threshold of testng tests

被刻印的时光 ゝ 提交于 2020-12-05 09:41:23
问题 We are trying to use Jenkins as our CI/CD solution, and want ability to fail a deployment if our TestNG tests do not meet a set pass rate threshold. Currently our Jenkins job executes our TestNG tests via maven, thus any test failure marks the build as failed. I.e. anything less than 100% pass rate, will fail the build job. We want ability to make it configurable - i.e. fail the test job if pass rate is below, say, 98%. Is this something i can control or configure inside the Jenkins job via

How to list all available jenkins plugins using command list with their short names

我是研究僧i 提交于 2020-11-29 10:30:06
问题 I want to list all available plugins names and their short names using command line option, so that I could automate required plugin installation through jenkins command line. Kindly advise. Thanks So far I tried to find answer on same however I got answer only for how to list installed plugins, not for all available plugins. I've found this link http://updates.jenkins-ci.org/download/plugins/ which lists all plugins but with their short names only 回答1: You were so close! The LAYOUT is

how to run jenkins declarative pipeline on node selected via parameter and label option

孤人 提交于 2020-11-29 10:29:47
问题 I want to run a pipeline with the node set as parameter via the Node and Label plugin. How do I change the declarative pipeline pipeline { agent { label 'whatever' } ... to use EXECUTION_NODE as agent to execute the pipeline? This seems to be much more complicated than I thought, or I am missing something obvious. 回答1: The issue is this: to present you the "Build with parameters" page, Jenkins needs to run your pipeline and parse its parameters. To run a pipeline, Jenkins needs a node. To