Getting key stakeholder buy-in for changes perceived as risky
DevOps
Organizational leaders must recognize that change is vital for the sur ...
Read MoreThis post is from the XebiaLabs blog and has not been updated since the original publish date.
This article describes a script which builds a DAR package in XL Deploy from properties which can be specified in and combination of 3 different locations:
artifact.type=jee.War
artifact.fileLocation=/Users/tom/qb_repo/builds/17/artifacts/dist/Cars_Sample_App.war
artifact.name=Cars_Sample_App
artifact.tags=['WAR']
datasource.type=jbossas.NonTransactionalDatasourceSpec
datasource.name=Tom_Datasource
datasource.jndiName=jndi/tomsds
datasource.userName={{DB_USERNAME}} datasource.password={{DB_PASSWORD}}
datasource.connectionUrl={{DB_CONNECTION_URL}}
There are a number of items of note the the above example:"{'webContent.type' : 'www.WebContent', 'webContent.name' : 'myWebContent', 'webContent.fileLocation' : '/Users/tom/scratch/PetPortal_pages.zip'}"
To use the script:cli.sh -host <XLDeployHost> -username <username> -password <password> -f $ScriptPath/createDar.py -- -n <appName> -b <buildID> -p <propertiesFile> -a <autoDeploy true|false> -e <deployEnv> -x <extraProperties>
For example:cli.sh -username admin -password deploy -source /Users/tom/Documents/CreateDARCLI/createDAR.py -- -n TestApp -b 1.0-6 -p /Users/tom/builds/propertiesSample.properties -x "{'webContent.type' : 'www.WebContent', 'webContent.name' : 'myWebContent', 'webContent.fileLocation' : '/Users/tom/scratch/PetPortal\_pages.zip'}" -a true -e "MyEnvironment"
This will create a package called "1.0-6", from the build argument, for application "TestApp". It will also deploy this to "MyEnvironment"