How to do version control for project having separate deploy configuration

Hi,
I have followed all steps defined in the following URL:-

I am using the following configurations to deploy on build, package, deploy on dev, test and then promote to Test
1 - build and package
2 - Deploy on Dev Environment
3 - Test
4 - Deploy on Test

I am trying to achieve version control by passing a branch parameter from deploy on Dev Environment configuration. We want to choose any branch to go onto Dev machine and then depending on release we promote it to Test. Currently, Issue is I cant pass a parameter to first configuration from 2nd build step. I tried joining 1 and 2 step together as well but getting following error:-

[16:04:15]Step 6/6: Create release on Nightly Dev server (OctopusDeploy: Create release) (1s)

[16:04:15][Step 6/6] Octopus Deploy

[16:04:15][Octopus Deploy] Running command: octo.exe create-release --server http://build:8088/octopus --apikey SECRET --project Service --enableservicemessages --version 10.446 --deployto Deploy-NightlyDev --progress --packagesFolder=Temp

[16:04:15][Octopus Deploy] Creating Octopus Deploy release

[16:04:16][Octopus Deploy] Octopus Deploy Command Line Tool, version 2.5.3.33

[16:04:16][Octopus Deploy]

[16:04:16][Octopus Deploy] Using package versions from folder: Temp

[16:04:16][Octopus Deploy] System.IO.DirectoryNotFoundException: Could not find a part of the path ‘Z:\BuildPackage\Temp’.

[16:04:16][Octopus Deploy] at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

[16:04:16][Octopus Deploy] at System.IO.FileSystemEnumerableIterator`1.CommonInit()

[16:04:16][Octopus Deploy] at System.IO.FileSystemEnumerableIterator1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler1 resultHandler, Boolean checkHost)

[16:04:16][Octopus Deploy] at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)

[16:04:16][Octopus Deploy] at OctopusTools.Commands.PackageVersionResolver.AddFolder(String folderPath)

[16:04:16][Octopus Deploy] at OctopusTools.Commands.CreateReleaseCommand.b__5(String v)

[16:04:16][Octopus Deploy] at OctopusTools.Commands.OptionSet.<>c__DisplayClass3.b__2(OptionValueCollection v)

[16:04:16][Octopus Deploy] at OctopusTools.Commands.OptionSet.ActionOption.OnParseComplete(OptionContext c)

[16:04:16][Octopus Deploy] at OctopusTools.Commands.Option.Invoke(OptionContext c)

[16:04:16][Octopus Deploy] at OctopusTools.Commands.OptionSet.ParseValue(String option, OptionContext c)

[16:04:16][Octopus Deploy] at OctopusTools.Commands.OptionSet.Parse(String argument, OptionContext c)

[16:04:16][Octopus Deploy] at OctopusTools.Commands.OptionSet.<>c__DisplayClass9.b__8(String argument)

[16:04:16][Octopus Deploy] at System.Linq.Enumerable.WhereArrayIterator`1.MoveNext()

[16:04:16][Octopus Deploy] at System.Collections.Generic.List1..ctor(IEnumerable1 collection)

[16:04:16][Octopus Deploy] at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)

[16:04:16][Octopus Deploy] at OctopusTools.Commands.OptionSet.Parse(IEnumerable`1 arguments)

[16:04:16][Octopus Deploy] at OctopusTools.Commands.ApiCommand.Execute(String[] commandLineArguments)

[16:04:16][Octopus Deploy] at OctopusTools.Program.Main(String[] args)

[16:04:16][Octopus Deploy] Exit code: -3

[16:04:16][Octopus Deploy] Octo.exe exit code: -3

Please guide.

Hi,

Thanks for getting in touch. Seems like the value passed to the parameter --packagesFolder is invalid. Try using the full path like C:\Packages\Temp

Thanks

Dalmiro

Bundles of thanks. Yes it worked by using a full path.

solved

The command looks OK, so there must be something wrong with the path at deploy time.

  • Is that directory on the same server as the Octopus server?
  • Are you creating that directory dynamically with some other process?
  • Can you try another Path (on C drive if possible)?

Dalmiro

I removed --packagesFolder=Temp from the following command and it worked fine.

Running command: octo.exe create-release --server http://build:8088/octopus --apikey SECRET --project Service --enableservicemessages --version 10.446 --deployto Deploy-NightlyDev --progress