cloudbees

Cloudbees Jenkins Folders Plugin: Folder Name as Enviroment Variable

巧了我就是萌 提交于 2019-12-13 04:30:29
问题 Is the Folder Name available as an environment variable similar to JOB_NAME? For a folder; JOB_NAME contains the full path including parent folders. I want the immediate parent folder as an environment variable. 回答1: No such variable exists, but $(basename $(dirname $JOB_NAME)) would give you what you are asking for. 回答2: Using the suggestion of $(basename $(dirname $JOB_NAME)) combined with the Environment Script Plugin, you should be able to set such an environment variable by selecting

Cloudbees: App Engine Deployment failing

≡放荡痞女 提交于 2019-12-13 00:10:57
问题 Strange error when deploying to GAE from Cloudbees DEV@cloud Jenkins instances: [cloudbees-deployer] Deploying as stuart.langridge@PROJECTNAME.com to Google App Engine [cloudbees-deployer] Deploying PROJECTNAME [cloudbees-deployer] Resolved from workspace as /scratch/jenkins/workspace/PROJECTNAME/PROJECTNAME ERROR: Couldn't find path for tool 'GAE Python SDK 1.7 (latest)' com.cloudbees.plugins.deployer.exceptions.DeployException: No {0} SDK available for node. at com.cloudbees.plugins

Cloudbees: App Engine Deployment failing with GAE SDK v1.8

半城伤御伤魂 提交于 2019-12-12 06:23:31
问题 When deploying to GAE from Cloudbees DEV@cloud Jenkins instances using GAE SDK 1.8, I get the following error: [cloudbees-deployer] Deploying as stuart.langridge@PROJECTNAME.com to Google App Engine [cloudbees-deployer] Deploying PROJECTNAME [cloudbees-deployer] Resolved from workspace as /scratch/jenkins/workspace/PROJECTNAME/PROJECTNAME [PROJECTNAME] $ /scratch/hudson/pythons/python-2.7.2/bin/python /opt/google/gae_python_sdk/1.8.latest/appcfg.py --no_cookies --email=stuart.langridge

Why does Jenkins job fail with “Server.InternalError - Deployment type not supported: zip” on CloudBees?

元气小坏坏 提交于 2019-12-11 13:48:39
问题 I am trying to deploy my Play Framework application to CloudBees, and it works fine locally when play run . After git push to a git repository, it is automatically dist and then the generated zip file deployed that unfortunately fails. Here is the log of this issue: [info] Packaging /scratch/jenkins/workspace/hello-play-tutorial/target/scala-2.11/hello-play-tutorial_2.11-1.0-SNAPSHOT-javadoc.jar ... [info] Done packaging. [info] [info] Your package is ready in /scratch/jenkins/workspace/hello

Unable to connect to host MySQL database on application deployed to CloudBees

a 夏天 提交于 2019-12-11 05:26:07
问题 I followed the instructions here but when attempted I got the following error: hudson.util.IOException2: remote file operation failed: /scratch/jenkins/workspace/Xinco Demo Publish/Xinco/target/Xinco-2012-08-30_00-20-05.war at hudson.remoting.Channel@1fc6bdea:s-50b0ae50 at hudson.FilePath.act(FilePath.java:783) at hudson.FilePath.act(FilePath.java:769) at com.cloudbees.plugins.deployer.DeployPublisher.perform(DeployPublisher.java:108) at hudson.tasks.BuildStepMonitor$1.perform

Android Emulator Plugin Failed to Initialize backend EGL display

此生再无相见时 提交于 2019-12-11 02:54:44
问题 I set up a Jenkins Job on Cloudbees and I can successfully checkout and compile my Android project there. Now I would like to run some JUnit tests in the android emulator and added the Android emulator plugin. I set the “Show Emulator Window“ option to false but after startup of the emulator I always get the error message: “Emulator did not appear to start; giving up”. Has anyone experience with Android builds on Cloudbees? Build log: $ /opt/android/android-sdk-linux/tools/android list target

cloudbees, groovy, jobs, folders: How to determine the job result, if the job is within a cloudbees folder?

删除回忆录丶 提交于 2019-12-10 11:34:15
问题 Problem : I'm using a script to determine if a certain amount of jobs are in SUCCESS state. It worked fine as long as I was not using cloudbees folder plugin. I could easily get the list of projects and get the project result. But after I moved the jobs to the cloudbee folder, the jobs and therefore the job results are no longer available! Q : Does anybody now how to get the job results with groovy from jobs which are located in a Cloudbees folder? 回答1: def job = Jenkins.instance

How do you deploy a non-web Java app through CloudBees Jenkins “Deploy Now” feature?

ε祈祈猫儿з 提交于 2019-12-09 18:51:02
问题 With CloudBees now supporting deployment of Java applications, is it possible to use the post-build action in Jenkins "Deploy to CloudBees" to deploy your app? Furthermore, I'd like to use the Maven assembly plugin's jar-with-dependencies goal so that I can simply and automatically deploy my entire app to CloudBees right through Jenkins. 回答1: While the current CloudBees deployer Jenkins plugin appears to not support this, in fact it does. Here are the steps that after much trial and error

Jenkins Groovy Remove user access from Project Matrix Authorization Strategy

戏子无情 提交于 2019-12-08 11:35:32
问题 We are using Project-Based Matrix Authorization Strategy and users are given access under Manage Jenkins -> Configure Global Security -> Authorization -> Users are provided appropriate accesses. We are providing user accesses at the folder level as well. Using below code I am able to remove user access, def amp = folder.getProperties().get(AuthorizationMatrixProperty.class) def op = amp.grantedPermissions // Code to remove permissions for user from Set This works fine. But for manage jenkins

Npm installs fails on cloudbees jenkins

穿精又带淫゛_ 提交于 2019-12-08 04:17:57
问题 With a strange checksum error, And I can't figure what's wrong. it happens both when I installed Npm and node as cloudbees support suggested and when I used node-js-jenkins plugin. both when using -g and not using -g flag. what's wrong? getting this log: > Unpacking http://nodejs.org/dist/v0.11.7/node-v0.11.7-linux-x64.tar.gz > to > /scratch/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/node_0.11.7 > on s-68b3777c $ > /scratch/jenkins/tools/jenkins.plugins.nodejs.tools