Last active
January 24, 2017 17:25
-
-
Save cyrille-leclerc/008417748e45d4feaf8b to your computer and use it in GitHub Desktop.
Jenkins Workflow with Cloud Foundry CLI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
this CloudFoundryCliBuildWrapper, is that a Jenkins plugin? Where can I find it?
Regards,
Christoph