Need some advise,
I am running a powershell file with a include for another ps1 file. I am
using a Windows bat command to run the file via powershell.exe. Please see
below for the file details.
FunctionB.ps1
*Function Get-ValueFortext()*
*{*
* return "abc"*
*}*
FunctionA.ps1
*$ScriptPath = Split-Path $MyInvocation.InvocationName*
*& "$ScriptPath\FunctionB.ps1"*
*$valueFromText = Get-ValueFortext*
The issue i get is the following
*05:36:38* Get-*ValueFortext *: The term 'Get-*ValueFortext*' is not recognized
as the name *05:36:38* of a cmdlet, function, script file, or operable program.
Check the spelling of *05:36:38* the name, or if a path was included, verify
that the path is correct and try
--
This email is sent by PwC. The email and any attachments may contain
confidential and\or legally privileged material. You must not use or
disclose the email if you are not the intended recipient. If you have
received the email in error please let us know by contacting the sender and
deleting the email. If this email contains a marketing message that you
would prefer not to receive in the future please reply to the sender and
copy your reply to [email protected] with "unsubscribe" in the
subject line. Our liability is limited by a scheme approved under
Professional Standards Legislation.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/3cb2c530-0809-497e-bf28-c0d3132dfbf2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.