Skip to content

Instantly share code, notes, and snippets.

@cyrille-leclerc
Last active January 24, 2017 17:25
Show Gist options
  • Save cyrille-leclerc/008417748e45d4feaf8b to your computer and use it in GitHub Desktop.
Save cyrille-leclerc/008417748e45d4feaf8b to your computer and use it in GitHub Desktop.
Jenkins Workflow with Cloud Foundry CLI
node {
git 'https://github.com/CloudBees-community/spring-petclinic.git'
env.PATH = "${tool 'Maven 3.2.2'}/bin:${env.PATH}"
sh 'mvn package'
wrap([$class: 'CloudFoundryCliBuildWrapper',
apiEndpoint: 'https://api.hackney.cf-app.com',
skipSslValidation: true,
cloudFoundryCliVersion: 'CloudFoundry CLI 6.11.3',
credentialsId: 'cleclerc_at_cloudbees_dot_com_hackney',
organization: 'cloudbees',
space: 'development']) {
sh 'cf push petclinic -p target/petclinic.war'
}
}
@cgrotz
Copy link

cgrotz commented Nov 30, 2016

Hi,
this CloudFoundryCliBuildWrapper, is that a Jenkins plugin? Where can I find it?

Regards,
Christoph

@4x4notfound
Copy link

4x4notfound commented Jan 24, 2017

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment