jenkins-plugins

How to upload a .xlsx file to jenkins job

家住魔仙堡 提交于 2019-12-25 08:20:58
问题 How can I upload a .xlsx file to jenkins job as a build parameter.? I tried using the file parameter but I see that the file is losing its extension or the original format. Is there any way I can upload an excel file to the jenkins job from jenkins UI? 回答1: In the file parameter settings, name the file with .xlsx extension: Then the file should hade that extension in your workspace. 来源: https://stackoverflow.com/questions/42258628/how-to-upload-a-xlsx-file-to-jenkins-job

SonarQube 5.6 FileNotFound exception during AST Scan

天涯浪子 提交于 2019-12-25 08:07:12
问题 During the AST Scan, I get a FileNotFoundException looking for a symbols-34.pb file: ERROR: Error during SonarQube Scanner execution org.sonar.squidbridge.api.AnalysisException: SonarQube is unable to analyze file : '/workingDir/src/main/java/package/JavaFile.java' at org.sonar.java.ast.JavaAstScanner.simpleScan(JavaAstScanner.java:93) at org.sonar.java.ast.JavaAstScanner.scan(JavaAstScanner.java:67) at org.sonar.java.JavaSquid.scanSources(JavaSquid.java:133) at org.sonar.java.JavaSquid.scan

How to use the 'Issue attribute path' in the parameter mapping of jenkins-trigger-plugin

折月煮酒 提交于 2019-12-25 07:59:07
问题 I am willing to trigger my Jenkins job based on status change event from a JIRA issue. I am able to do it using jenkins-trigger-plugin. However I wish to get some more information about the issue like the description of the issue etc. I could see an environment variable named 'JIRA_ISSUE_KEY' but it gives me the key and nothing else. 回答1: As of the current release, the issue attribute path is currently resolved from this Issue object. All of jira-trigger-plugin configuration is documented in

Jenkins packagecloud plugin - upload of a package ex .deb failed if it already exist

蓝咒 提交于 2019-12-25 07:46:24
问题 Using: Jenkins: 2.7.2 PackageCloud Plugin: 1.11 Uploading an artifact to PackageCloud using Jenkins PackageCloud Plugin. My Jenkins job created a .deb package wfcli_5.0.10-2_amd64.deb and using this plugin, I'm successfully able to upload an artifact to my private PackageCloud repository that I created. If I rerun the job, it creates the same package .deb filename and tries to upload the artifact to PackageCloud and giving me the following message and marking the build as failed. 19:07:07

How to take backup of Jenkins jobs to remote machine

╄→尐↘猪︶ㄣ 提交于 2019-12-25 07:27:45
问题 I want to take scheduled backup of Jenkins jobs form Jenkins server to some remote machine. I tried exploring several Jenkins plugins for that but none of that are not able to take backup to the remote machine. I successfully take backup of the Jenkins workspace using the shell script but in that case it's hard to restore the backup. Any Suggestions? 回答1: If I can suggest a different approach - if you're using any kind of source control it'll be better to backup your files and configuration

Can I restrict poll SCM job to be run only once in a day?

北战南征 提交于 2019-12-25 06:49:58
问题 I have a poll SCM job , which polls every 5 minutes for a change in Perforce. But I need the job to be triggered only when first edit happens for the files in perforce in a day. Can I restrict poll SCM job to be run only once in a day? 回答1: Jenkins itself does not provide this kind of behaviour ("run only for the very first change every day"). You need to split this down into two parts; the first one polling SCM, the second taking care that the job will not run more than once per day.

To get build status through environment variable

荒凉一梦 提交于 2019-12-25 05:05:48
问题 I am using jenkins for continous integration. For my build purpose, i triggering email using Ant task. I am not able to find an environment variable to pass ant for sending email build status(success/failure/stable). i want to know how can i get environment variable for build status?..if not available, what is the alternative option for build status? Thanks in Advance varghese 回答1: Why use ANT to send emails from Jenkins when you have two great plugins that does just that? The default mail

Trouble reading Secrets from Jenkins Credential Manager in Multi Branch Pipeline job using Credential Parameter

北城以北 提交于 2019-12-25 02:15:48
问题 I have a Jenkins multi branch pipeline job that uses a secret value in Jenkinsfile : pipeline { agent any stages { stage('Test') { steps { echo "DOCKER_REGISTRY_USER is ${env.DOCKER_REGISTRY_USER_NSV}" } } } } The secret value is stored in Credentials Manager as secret text with the ID DOCKER_REGISTRY_USER_NSV : I'm trying to read this value in Jenkinsfile as shown above but I get the following output that prints out the value null for my secret: [Pipeline] } [Pipeline] // stage [Pipeline]

Jenkins API: EnvVars.overrideAll not overriding existing environment variables in Pipeline job.

懵懂的女人 提交于 2019-12-25 00:22:21
问题 I am trying to set Jenkins environment variables at runtime via the EnvironmentContributor.buildEnvironmentFor() method. Suppose I set an environment variable named "existingKey" with value "oldValue" in the Jenkins configure page. If I set existingKey to any other value by using EnvVars.overrideAll it doesn't take. New key/value pairs persist. Here's my code: @Extension public class MyEnvironmentContributor extends EnvironmentContributor { Logger log... @Override public void

Publish Robot Framework test results option is not available after successful installation of Robot Framework plugin in Jenkins

故事扮演 提交于 2019-12-24 19:15:52
问题 I've successfully installed Robot Framework plugin in Jenkins. I restarted the server. While configuring my project, Publish Robot Framework test results should be visible in Post-build Actions menu. But this is not the case. There is no such option exists to publish robot framework test results. Am I missing something here? 回答1: Jenkins assume that you have installed suggested plugins , before you go for Robot framework plugin . The definition of suggested plugins is not much clear and very