Skip to content

Jenkins Pipeline Library for running CloudUnit tasks

License

Notifications You must be signed in to change notification settings

end-of-game/cloudunit-jenkins-pipeline-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CloudUnit Logo

CloudUnit Jenkins Pipeline Library

This repository contains a Jenkins Pipeline library for running CloudUnit tasks.

How to use

Importing the library

The documentation for the Jenkins Pipeline Shared Groovy Libraries Plugin contains all the details for importing and using a Pipeline library.

Available commands

cloudunit(String host, String username, String password, String script)
  • host contains the URL to connect to a CloudUnit Manager
  • username CloudUnit user
  • password password
  • script contains a CloudUnit CLI script

Connects to the CloudUnit Manager running at the specified URL, and runs the script, then disconnects.

Example:

def cloudunitHost = "http://cloudunit.dev"

cloudunit(cloudunitHost, "johndoe", "****", """
  create-app --name ${env.BRANCH_NAME} --type tomcat-8
  deploy --path target/ROOT.war
""")