Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable Substitution Issue in Repository URL field with Git Repository as Script Source in Run a Script Step #8526

Closed
RobMcCarther opened this issue Dec 12, 2023 · 2 comments
Assignees
Labels
kind/bug This issue represents a verified problem we are committed to solving

Comments

@RobMcCarther
Copy link

Severity

Low

Version

2024.1 Build 3998-hotfix.4353

Latest Version

I could reproduce the problem in the latest build

What happened?

Encountering a bug where variable substitution is not functioning as expected in the Repository URL field when using a Git repository as the script source in a Run a Script step. Despite attempting to substitute variables like #{Project.AdoRepositoryUrl}, the system generates an error insisting on a valid repository URL, hindering the intended flexibility in configuration.

A valid repository URL must be specified when using a Git repository source, e.g. https://github.com/OctopusDeploy/OctopusClients.git

The Script File Path accepts variable substitution without issue

Repo URL error
sctipt file path var sub - no error
Variable Repo URL definition

Reproduction

  • Configure a Run a Script step using a Git repository as the script source.
  • Define project variable for a valid git repo URL (https://github.com/OctopusDeploy/OctopusClients.git)
  • Attempt to substitute variables like in the Repository URL field and save
  • Encounter an error demanding a valid repository URL, despite the presence of the variable.

Error and Stacktrace

_A valid repository URL must be specified when using a Git repository source, e.g. https://github.com/OctopusDeploy/OctopusClients.git_

More Information

No response

Workaround

To enter in the Repository URL manually

@RobMcCarther RobMcCarther added the kind/bug This issue represents a verified problem we are committed to solving label Dec 12, 2023
@rain-on
Copy link

rain-on commented Apr 29, 2024

Release Note: Fixed issue whereby when using git-sourced scripts, an Octopus variable was considered invalid content for the repository URL; Octopus Variables can now be used for git repository urls.

@Octobob
Copy link
Member

Octobob commented May 16, 2024

🎉 The fix for this issue has been released in:

Release stream Release
2024.2 2024.2.6781
2024.3+ all releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug This issue represents a verified problem we are committed to solving
Projects
None yet
Development

No branches or pull requests

3 participants