Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Help with Git raft in Otter
-
I guess the bit I am confused about is if a restart is needed mid script. Would the agent on the server resume the script post reboot?
For script assets, how would I reference from my Powershell script? Or should I use OtterScript and then have the step above and then my script?
-
To add, I get this error when making a job template:
"KillerGamingWindowsPowershell::JobTemplate::KillerGamingWindowsPowershell::Jobs/t" is not a valid raft item identifier.
Sorry for all the questions, just trying to get myelf up and running!
-
In addition, when I drag a ps1 script in an otterscript orchestration, the popup is blank and i can't add the script. eg:

-
Hi @gurdip-sira_1271,
I guess the bit I am confused about is if a restart is needed mid script. Would the agent on the server resume the script post reboot?
You would need to perform the restart in OtterScript.
for server REMOTEMACHINE { PSCall MyScript1.ps1; Restart-Server; PSCall MyScript2.ps1; }For script assets, how would I reference from my Powershell script? Or should I use OtterScript and then have the step above and then my script?
In this case, you'll want to use OTterScript to deploy the script assets first.
To add, I get this error when making a job template:
That's a regression, and we'll fix it pretty soon. It has to do with Job Template folders in Git Rafts. We're shipping Otter v2022 today actually :)
In addition, when I drag a ps1 script in an otterscript orchestration, the popup is blank and i can't add the script.
Does your script have any parameters? If so, that is to be expected. Its should save if you hit the save button however. Note that in Otter v2022, shipping very soon, the script editor is totally rewritten and should be fixed.
Cheers,
Alana -
Ok thanks, I will try otter v2022.
The bit I am not sure about is what my ps1 code should look like for the file reference to the text file.
The script has no parameters. The behaviour seems a bit erratic. Are you referring to v3.0.24? As I tried this and no change.
-
Hi @gurdip-sira_1271 ,
If your script has no parameters, then there's nothing to really show on the Visual Editor. However, you should be able to save the statement.
Behind the scenes, the visual editor should just make a
PSCall Set-WebServer;in text mode. What does the text mode look like?Cheers,
Alana -
Hmm, nothing in text mode, but I have to cancel and then view.
The other confusing thing is with multiple git-based rafts, it's not clear which script is part of which raft.
-
@gurdip-sira_1271 it's possible there's a bug in the visual mode with that, especially w/ rafts...
Here is how you you would call scripts from another raft:
PSCall RaftName::Set-WebServer;When you don't specify a raft name, then
Defaultis used as the raft. -
-
OK i get an error stating the script cannot be found. I think that's because in the visual plan, the sript doesn't appear anyway.
-
Hi @gurdip-sira_1271,
Just to let you know, Otter v2022 has been released; from here it'd be best to start a new thread if you have a specific issue -- we'll be happy to help!
Steve
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login