cloudbees

Jenkins: Use Archived Artifact in Promoted Build

≡放荡痞女 提交于 2019-12-31 10:39:09
问题 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 promotion process? Please note that I need to access the specific build, not the latest successful one. The goal of the promotion process is to copy the artifact to S3 from where our deployment job will further process it. So I might promote build #52

Pass groovy variable to shell script

一世执手 提交于 2019-12-29 06:59:51
问题 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 = "${svnBaseURL}${svnAppCode}${svnEnvDev}${SVN_DEV_PACKAGE}" def svnDestPath = "${svnBaseURL}${svnAppCode}${svnEnvTest}${SVN_DEV_PACKAGE}" print "DEBUG: svnSourcePath = ${svnSourcePath}" print "DEBUG: svnDestPath = ${svnDestPath}" withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId:

Uploading a file, Spring MVC + CloudBees

半城伤御伤魂 提交于 2019-12-25 16:42:39
问题 I have worked on local Tomcat's server and now I've just deployed my application to CloudBees. Everything works great apart from uploading a file to the server's directory. I have such a piece of code in my controller, which worked for me on localhost: @RequestMapping("/main/admin/upload") public ModelAndView fileUploaded( @ModelAttribute("uploadedFile") FileUpload uploadedFile, final HttpServletRequest request, final HttpServletResponse response, BindingResult result) { InputStream

Getting 502 bad request after deploying Play 2.1.0 app to Cloudbees

荒凉一梦 提交于 2019-12-25 11:15:14
问题 I tried to deploy a Play app to Cloudbees (only via push to git repo from which it is built by jenkins), it compiled and should work but I get a "502 Bad Gateway" error when loading the app. There is no error shown in the console only that it answers "502 Bad Gateway" when trying to access it. But that's what I see in the browser, too. Cloudbees say that there is no other manipulation necessary, just cloning/pulling the ClickStart-Project, making it you application and pushing it back. The

Network latency with using different PaaS solutions

你。 提交于 2019-12-24 14:43:21
问题 Not sure is this belongs to stackoverflow or stackexchange. Mods - please point me towards the right platform. I am unable to find statistics for an average network latency (due to network calls) and average cost hike (because these platforms also charge for network ingress/egress) due to the amount of web-service calls involved - especially when we use different providers for webapp hosting and database hosting. Pretty much everything is on SSL to add more delay. Is this delay/cost

How do we access Jenkins workflow input parameter values?

纵饮孤独 提交于 2019-12-24 13:13:03
问题 Presumably the parameters that are specified in a Jenkins workflow input step are available for consumption and conditional logic? How do we obtain those values? e.g. how do we obtain and reference true or false value for the checkbox parameter in the following: input id: 'Proceed1', message: 'Proceed or abort?', parameters: [[$class: 'BooleanParameterDefinition', defaultValue: false, description: '', name: 'Please confirm you agree with this']] 回答1: The return value of the input step will be

Setting environment variable in Cloudbees Jenkins folder

ぃ、小莉子 提交于 2019-12-24 05:41:13
问题 After I reinstalled Jenkins and Cloudbees Free Enterprise plugins, an environment variable set in my Jenkins folder stopped working and disappeared from the config UI. However, it is still there in the config.xml on the filesystem, as: <properties> <com.cloudbees.hudson.plugins.folder.properties.EnvVarsFolderProperty> How should I now create environment variables that apply to an entire folder? 回答1: The functionality has been moved to the Folders Plus plugin, which requires a Jenkins

Store files in Cloud using Java EE

橙三吉。 提交于 2019-12-24 05:39:13
问题 Am using CloudBees to deploy my Java EE application. In that I need to write and read files and I wont find any cloud file system from CloudBees. Please suggest me any free cloud file system storage and java code to access that file system. 回答1: Using jclouds you can store stuff in several different clouds while using a consistent API. http://www.jclouds.org/ 回答2: You can store files - however they will be ephemeral and not shared in the cluster. To achieve that, you would need to store in a

Unable to connect to MySQL in Cloudbees CommunicationsException: Communications link failure

风流意气都作罢 提交于 2019-12-23 02:21:11
问题 It was requested from this question to post a different question. I did as recommended in the question above and corrected the cloudbees.xml file correctly. But even then I can't connect. Here's the stack trace: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence

Multi-tenant application on CloudBees with multiple SSL certificates (SNI)

独自空忆成欢 提交于 2019-12-23 00:51:28
问题 I'm building a multi-tenant application using the Play framework and hosting it with CloudBees. A key feature the site is the ability to purchase SSL certificates on behalf of our customers during the sign-up process. On sign-up, the user provides us with their custom domain name (ie, customer.com) We create the client account and associate customer.com with their client ID We purchase the SSL certificate for our client and automatically configure it on our server The client should only have