Skip to content

Commit

Permalink
docs: Add example of cloudHubV2Application into allOptions.groovy file
Browse files Browse the repository at this point in the history
  • Loading branch information
talyssoncastro committed Feb 1, 2024
1 parent 683a8fc commit 1fdc2ff
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions library/examples/allOptions.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import com.avioconsulting.mule.deployment.api.models.UpdateStrategy
import com.avioconsulting.mule.deployment.api.models.VCoresSize

muleDeploy {
// version of the tool
version '1.0'
Expand Down Expand Up @@ -125,4 +128,44 @@ muleDeploy {
some_ch_value_we_havent_covered_yet: true
])
}

cloudHubV2Application {
environment params.env
applicationName {
baseAppName 'the-app'
prefix params.env
suffix params.env
}
appVersion '${project.version}'
workerSpecs {
target 'Cloudhub-US-West-2'
muleVersion '4.4.0'
persistentObjectStore false
lastMileSecurity false
clustered false
updateStrategy UpdateStrategy.recreate
replicasAcrossNodes false
publicURL false
replicaSize VCoresSize.vCore1GB
workerCount 1
forwardSslSession false
disableAmLogForwarding true
}
businessGroupId '${project.groupId}'
autoDiscovery {
clientId 'the_client_id'
clientSecret 'the_client_secret'
}
// optional from here on out
appProperties([
someProp: 'someValue'
])
appSecureProperties([
firstSecureProp: true,
secondSecureProp: 'second'
])
otherCloudHubProperties([
some_ch_value_we_havent_covered_yet: true
])
}
}

0 comments on commit 1fdc2ff

Please sign in to comment.