Questions tagged [cloudbees]

CloudBees provides products and services related to the Jenkins continuous integration/delivery server.

This tag may be used to discuss tips and techniques related to CloudBees offerings, such as CloudBees Jenkins Platform (including CloudBees Jenkins Enterprise and CloudBees Jenkins Operations Center), or the hosted Jenkins service on *.ci.cloudbees.com.

CloudBees customers who need guaranteed help should use the support site.

693 questions
34
votes
12 answers

Get username logged in Jenkins from Jenkins Workflow (Pipeline) Plugin

I am using the Pipeline plugin in Jenkins by Clouldbees (the name was Workflow plugin before), I am trying to get the user name in the Groovy script but I am not able to achieve it. stage 'checkout svn' node('master') { // Get the user name…
Daniel Hernández
  • 4,078
  • 6
  • 27
  • 38
18
votes
3 answers

Jenkins embeddable build status icon not shown

I want to use the Embeddable Build Status Plugin for Jenkins. I am using Cloudbees. I granted Job/ViewStatus permissions to the anonymous user. When I add the Markdown to the README.md no icon is shown. I tried both the protected and the unprotected…
JJD
  • 50,076
  • 60
  • 203
  • 339
18
votes
3 answers

Jenkins: Use Archived Artifact in Promoted Build

I've archived an artifact as the last step of the build and it's available as something like this: https://xxx.ci.cloudbees.com/job/xxx/52/artifact/target/xxx-1.2.1-SNAPSHOT-r8304-20130807-1507-app.zip How can I easily access the artifact in my…
xeraa
  • 10,456
  • 3
  • 33
  • 66
16
votes
2 answers

How to delete a view named ".."

I created a new view in Cloudbees and, while configuring it, wanted it to remain somewhat unnoticed by the rest of my team. I renamed the view to "..", just because it was the first thing that came to mind. Now I can't delete the group, because the…
Jeff Fairley
  • 8,071
  • 7
  • 46
  • 55
16
votes
4 answers

Can I make the SCM polling interval for Jenkins randomised

In most Jenkins' examples the SCM poll value is designated */15 * * * *, ie. poll SCM every 15 minutes. That's fine when you have hundreds of jobs, but not if you have thousands of jobs as it results in thousands of request to the SCM (Subversion…
Michael Neale
  • 19,248
  • 19
  • 77
  • 109
14
votes
7 answers

Pass groovy variable to shell script

I just started learning groovy.I want to pass the svnSourcePath and svnDestPath to shell script in the svn copy command. But URL not rendered. node { stage 'Copy Svn code' def svnSourcePath =…
Selvam Rajendran
  • 1,366
  • 5
  • 20
  • 38
14
votes
3 answers

Git environment variables for use in executing Jenkins shell scripts

Hope someone can help - I have the following plugin installed in my Jenkins instance - but I don't seem to be able to get hold of the Git variables below. I need these to complete our CI setup. Is there something that I'm missing? I'm passing them…
user119680
  • 501
  • 1
  • 3
  • 8
12
votes
5 answers

No space on device with Jenkins and Docker - how to cleanup properly

We're running Jenkins (version 2.60.1) on an Ubuntu 16.04.1 server. One of the issues we've been running into recently is that we routinely get the error "no space left on device". I understand when using Docker there needs to be a strict clean-up…
Aaron
  • 2,672
  • 10
  • 28
  • 45
11
votes
3 answers

jenkins-cli build on Cloudbees: "no such job"

I need to remotely trigger a Jenkins build hosted on CloudBees. Right now, I'm attempting to use jenkins-cli to no avail. Right now I am authenticating using a SSH key pair. When I do: $ java -jar jenkins-cli.jar -s https://... list-jobs All I can…
11
votes
6 answers

Deploying a java web application online

I have built a java web application on Eclipse. But i am naive in terms of making an application live i.e. deploy it online. I have tried using Cloudbees, and succeeded in deploying it at run@cloud there, but could not see it actually running. I…
newbie101
  • 113
  • 1
  • 1
  • 5
10
votes
0 answers

Bitbucket Build Status of Pull Request showing failed builds, instead of latest build status

I integrated Bitbucket with Cloudbees, having the following workflow: everytime an user creates a Pull Request, having as target develop branch, a multi-branch pipeline in cloudbees will cluster the pull request (e.g. PR-34) and it will trigger the…
wemew
  • 101
  • 1
  • 3
10
votes
3 answers

Load file from '/conf' directory on Cloudbees

What we do : We run Play2 application on Cloudbees and we load a file from '/conf' directory (inside the classpath of the application). These 2 snippets work in local and at heroku Play.application().getFile("conf/myfile.json") and new…
Maxence
  • 13,148
  • 4
  • 29
  • 28
9
votes
1 answer

How do I add scan credentials for Jenkins Bitbucket Branch Source Plugin?

I am attempting to set up the CloudBees Bitbucket Branch Source Plugin but I am unable to set the credentials. I have added username and password credentials, but the dropdown is still empty. I am using a new installation of Jenkins version 2.9…
Lee
  • 1,652
  • 1
  • 13
  • 21
9
votes
2 answers

Jenkins Groovy how to call methods from @NonCPS method without ending pipeline

I need to parse some JSON in a Jenkins Pipeline and call some regular methods in a loop, however the script always exits after the first function call. How to do this? import groovy.json.JsonSlurper import…
Fo.
  • 3,752
  • 7
  • 28
  • 44
9
votes
2 answers

How to repeat a stage in Jenkins Workflow

I'm trying to use Jenkins on Cloudbees to automate deployment of my software. I setup my workflow as following. There may be times I want to redeploy. (assuming that stage takes a manual input parameter). How do I do that in workflow ? Here is my…
1
2 3
46 47