DeployHubProject / DeployHub-Pro

DeployHub Pro Pipeline Status Project
https://www.openmakesoftware.com/application-release-automation-for-continuous-delivery/
Other
11 stars 4 forks source link

Deployment templates are not added to new application versions #355

Closed hatati closed 2 years ago

hatati commented 2 years ago

I have a base application version Obex Platform where the successful and failed templates are set: image

When our jenkins pipeline creates and deploys a new application version its template properties are empty image

Here is the line that creates and deploys a new application version: dh deploy --dhurl https://ortelius.obex.schantz.com --dhuser jenkins --dhpass **** --appname GLOBAL.Keylane.Obex.Obex Platform --appversion latest --deployenv GLOBAL.Keylane.Obex.Obex_Platform.naerpension.release.azure-naerpension-release-environmen

sbtaylor15 commented 2 years ago

Did you run a dh updatecomp prior to running the dh deploy for the new application version?

hatati commented 2 years ago

Yes, i did. Here is the command and output that was run prior to the dh deploy:

dh updatecomp --dhurl https://ortelius.obex.schantz.com --dhuser jenkins --dhpass **** --deploydatasave /tmp/compdata.json --appname GLOBAL.Keylane.Obex.Obex Platform --appversion 39.0.0 --appautoinc GLOBAL.Keylane.Obex.Obex Platform --compname GLOBAL.Keylane.Obex.Front-End.ui-service --compvariant master --compversion v39.0.0.386-gc975eb05e --compattr artifactory_resource_url:https://artifactory.schantz.com/artifactory/obex-nap/deploy-environments/ui/1.0.6/ui-deploy-environments-1.0.6.tar.gz --compattr GitCommit:c975eb05e --compattr GitUrl:https://obex-jenkins:xxx@git.schantz.com/scm/ad/ui.git --compattr GitRepo:ad/ui --compattr GitBranch:master --compattr BuildId:386 --compattr BuildNumber:386 --compattr BuildUrl:https://jenkins.obex.schantz.com/job/Advice/job/ui/job/master/386/ --compattr CustomAction:GLOBAL.UiHelmUpgrade --compattr Chart:artifactory/ui --compattr ChartNamespace:obex-platform-nightly --compattr ChartRepo:artifactory --compattr ChartRepoUrl:https://artifactory.schantz.com/artifactory/helm --compattr ChartVersion:1.0.6 --compattr DockerBuildDate:Mon Dec 20 15:24:23 UTC 2021 --compattr DockerSha: --compattr DockerRepo:artifactory.schantz.com/keylane/obex/nap --compattr DockerTag:ui-nonroot:latest

Creating Component
Creation Done: GLOBAL.Keylane.Obex.Front-End.ui-service;master;v39_0_0_386_gc975eb05e
Updating Component Attributes

{'BuildId': '386',
 'BuildNumber': '386',
 'BuildUrl': 'https://jenkins.obex.schantz.com/job/Advice/job/ui/job/master/386/',
 'Chart': 'artifactory/ui',
 'ChartNamespace': 'obex-platform-nightly',
 'ChartRepo': 'artifactory',
 'ChartRepoUrl': 'https://artifactory.schantz.com/artifactory/helm',
 'ChartVersion': '1.0.6',
 'CustomAction': 'GLOBAL.UiHelmUpgrade',
 'DockerBuildDate': 'Mon Dec 20 15:24:23 UTC 2021',
 'DockerRepo': 'artifactory.schantz.com/keylane/obex/nap',
 'DockerSha': '',
 'DockerTag': 'ui-nonroot:latest',
 'GitBranch': 'master',
 'GitCommit': 'c975eb05e',
 'GitRepo': 'ad/ui',
 'GitTag': 'master',
 'GitUrl': 'https://obex-jenkins:xxx@git.schantz.com/scm/ad/ui.git',
 'artifactory_resource_url': 'https://artifactory.schantz.com/artifactory/obex-nap/deploy-environments/ui/1.0.6/ui-deploy-environments-1.0.6.tar.gz'}

Updating Change Requests

Attribute Update Done
AppName=GLOBAL.Keylane.Obex.Obex Platform AppAutoInc=GLOBAL.Keylane.Obex.Obex Platform
GLOBAL.Keylane.Obex.Obex Platform
Creating Application Version 'GLOBAL.Keylane.Obex.Obex Platform' '39.0.0'
Creation Done: GLOBAL.Keylane.Obex.Obex Platform;39_0_0
Assigning Component Version to Application Version GLOBAL.Keylane.Obex.Obex Platform;39_0_0
Assignment Done
sbtaylor15 commented 2 years ago

Internal cache was returning slim object instead of the full object which included the template data. Fixed in this image quay.io/deployhub/deployhub-pro:ui-skin-v9.0.0.3271-g1077e12

hatati commented 2 years ago

New application versions now contain the templates. Thank you