Skip to content

Issue with Git - Pull (HTTPS) #1398

Description

@Porter-dm

Step template

Git - Pull (HTTPS)

Step version

8

Octopus version

2023.3 (Build 12994)

Step template parameter inputs

Clone URL: https://github.com/biobright/octopus-testing
Username: biobright-octopus
Password: #{github_pat}
Branch name: main

What happened

I get the following error:

InvalidData: Cannot bind argument to parameter 'Path' because it is null. 
At /home/Octopus/Work/ServerTasks-74670-2d46ae74-c364-4bf7-9cc9-fd5508fb4155/Script.ps1:30 char:32 
+ $tempDirectoryPath = join-path $tempDirectoryPath "GitPull" 
+                                ~~~~~~~~~~~~~~~~~~ 

Reproduction steps

Looking close, it appears that this is because line 29 of the script

$tempDirectoryPath = $OctopusParameters['Octopus.Tentacle.Agent.ApplicationDirectoryPath']

Doesn't actually populate $tempDirectoryPath -- it is still null.

More Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions