Search code examples
urbancode

Replicating Git directory structure into local using IBM UCD


This question relates to the usage of a continuous deployment tool of IBM which is Urban Code Deploy. We are using UCD for deploying components from our Git repository to a target machine. One of the components in the Git repo has specific folder structure, such as

Unix/Files/Temp/sample.ksh

When I run the Download Artifact plugin of UCD, it fails to create the Gt directory structure in the target machine and place the file if the directory structure does not exist.

I want to replicate the exact same directory structure as there in the source versioning system in the target machine using Urban Code Deploy,and if directory structure is not found, UCD should create it.

How should I achieve it? Please help.

Thanks. Kumarjit


Solution

  • This question has been answered by Kuba Ober

    UCD should create that structure by default. But when you deploy artifacts, you need to cofngiure proper clone origin, branch, and perhaps sub-folders.

    To help us replicate you must make it possible to do same thing as you’re doing. So create a new UCD deployment and deploy from any public github repository, and see if you get the same problem with the paths not being created. We can’t deploy from your private repository, so we cannot reproduce your problem that way. There may be problems with things specific to your source repository, so we must first make sure that it works for some public repository, say https://github.com/KubaO/stackoverflown.git. There are multiple folders in the master branch: try deploying that.