Where is the frontend JavaScript/HTML code after installing Octopus server on Windows 10

Where is the frontend JavaScript/HTML code after installing Octopus server on Windows 10?

I can see the package data etc under C:\Octopus and DLLs under C:\Program Files\Octopus Deploy\Octopus

But I also want to know where the HTML/JavaScript for the UI is.

Thank you.

Hey Tony,

Due to it’s highly dynamic nature, there’s no fixed file path with static HTML or assets. You can access the rendered code via your browser’s developer tools. For instance, in Firefox navigate to the page and hit F12. This is all you will be able to see/access. Is there something in particular you were trying to find?

Thanks,
Jeremy

I want to change the JavaScript/HTML a bit on our local server, not just for my browser, but for our internal users.

Hey Tony,
Sorry but unfortunately that’s not possible with Octopus. To better understand the problem you’re trying to solve, can you let me know what your use case is here?
Thanks,
Jeremy

When user pushes the blue “CREATE RELEASE” button on https://demo.octopus.com/app#/Spaces-1/projects/commerce-api-service/deployments, I want the button to call Octopus LibraryVariableSets API first to get some information, and pre-fill the information into the release notes in the next page.

Thank you, Jeremy.

Hey Tony,

I believe we actually already have this functionality built-in but it takes some slight setup. First, if you haven’t already, you will need to go to the Project in question and go to Variable->Library Sets, and include whichever sets you are wanting to reference in the release notes. Once you have done that and saved, you will then go to Settings inside the project and click “Release Notes Template”. In here you will place any text and variables that you want included in the release notes automatically. You will reference the variable by using this syntax #{VariableName} .

If you do all of the above it should auto fill the information and variables you put in the template when you create any new releases. Here are some quick links to documentation to supplement the above if you want more information:
https://octopus.com/docs/managing-releases/release-notes#using-variables-in-release-notes
https://octopus.com/docs/projects/variables/system-variables
https://octopus.com/docs/projects/variables/library-variable-sets

Please let me know if this implementation has the same functionality that you were looking to use, or if there was something extra or different than the above that you were looking to utilize.

Thanks,

2 Likes

Hi Jeremy,

The example in https://octopus.com/docs/managing-releases/release-notes#using-variables-in-release-notes is for getting package information. Do you have an example using library variable sets as templates in release notes? I tried a few formats of using library variable sets but could not make them work.

Thank you.

Hey Tony,

I’ve pasted some screenshots of my reproduction below. First I went to the project itself and went to Variables->Library Sets and included the set I wanted to reference. I have made two variables, Test, and TestDupe. TestDupe will overlap with a project variable with the same name. This will show that Project variables take precedence over Library Set variables.

Next, I went to the Project Variables section and created TestDupe.

Then I went to the Settings of the project and changed the Release Notes Template to reference both the variables we created.

Finally, when creating a release I checked the output to make sure both variables are called and that the Project variable took precedence when there is a duplicate variable name.

Please let me know if this is helpful or if you have any other questions.

Thanks.
Jeremy

1 Like