Package: deployhub
dhDeployHub's CLI using the dhapi module.Arguments:ACTION - one of the followingdeploy- deploy the application to the environmentUsage:--dhurl
--dhuser
--dhpass
--appname
--appversion (optional)
--deployenvapprove- approve the application versionUsage:--dhurl
--dhuser
--dhpass
--appname
--appversion (optional)move- move the application version using the supplied taskUsage:--dhurl
--dhuser
--dhpass
--appname
--appversion (optional)
--from_domain
--taskupdatecomp- create/replace the component version for the application verionUsage:--dhurl
--dhuser
--dhpass
--compname
--compvariant (optional)
--compversion (optional)
--autocompinc (optional)
--appname (optional)
--appversion (optional)
--autoappinc (optional)
--compattr
--consumes (optional)
--provides (optional)Predefined Key/Values:BuildId - Identifier for the CI jobBuildNumber - Build number for the CI jobBuildUrl - url for the CI jobChart - Helm Chart for the componentChartNamespace - Name space for the component to be deployed toChartRepo - Helm Chart Repo NameChartRepoUrl - Helm Chart Repo UrlChartVersion - Helm Chart versionCustomAction - Custom Action to assign to the ComponentDockerBuildDate - Timestamp when the image was createdDockerRepo - Registry which the image was pushed toDockerSha - Digest for the imageDockerTag - Tag for the imageGitBranch - Git branch in the git repoGitCommit - Git commit that triggered the CI jobGitRepo - Git repo that triggered the CI jobGitTag - Git tag in the git repoGitUrl - Full url to the git repooperator - Operator nameReadme - Readme location in the Git RepoServiceOwner - Owner of the ServiceServiceOwnerEmail - Email for the Owner of the ServiceServiceOwnerPhone - Phone number for the Owner of the Serviceassign- assigns a component version to an application verionUsage:--dhurl
--dhuser
--dhpass
--compname
--compvariant (optional)
--compversion (optional)
--appname
--appversion (optional)kv- assigns the key/values pairs to the component verionUsage:--dhurl
--dhuser
--dhpass
--compname
--compvariant (optional)
--compversion (optional)
--kvconfigenvscript- creates a bash file from the component toml fileUsage:--envvars
--envvars_shexport- exports a domain including all objects to stdoutUsage:--dhurl
--dhuser
--dhpass
--from_domimport- imports the export file into the new domainUsage:--dhurl
--dhuser
--dhpass
--from_dom
--to_domParameter Descriptions:--dhurl- DeployHub Url--dhuser- DeployHub User--dhpass- DeployHub Password--appname- Application Name--appversion- Application Version--appautoinc- Application Auto Increment Version--deployenv- Deployment Environment--compname- Component Name--compvariant- Component Variant--compversion- Component Version--compautoinc- Component Auto Increment Version--kvconfig- Directory containing the json and properties file--crdatasource- Change Request Data Source for the Component--changerequest- Change Request for Component, use multiple time for each Change Request Id--deploydata- The json file that contains the application, environment and log details--from_domain- Move from domain--task- Task to use for move--envvars- Env Variables TOML file--envvars_sh- Env Variables Output sh file--docker- docker Kind of the component item--file- file Kind of the component item--compattr- Component Attributes, use multiple time for each attr--envs- Environments to Associate App to, use multiple time for each env--importfile- File to Import--fromdom- From Domain--todom- To Domain--msname- New microservice being added to the cluster--msbranch- New microservice branch being added to the cluster--consumes- json file that lists the endpoints the component consumes.  [ {"verb", "get", "path": "/weather"}]--provides- json file that lists the endpoints the component provides.  [ {"verb", "get", "path": "/checkout"}]Example Jenkinsfile Snippet:https://github.com/ortelius/compupdate/blob/main/Jenkinsfile