1. Arcady Abramov
  2. PowerBuilder
  3. Tuesday, 22 October 2019 08:59 AM UTC

Hello, all

I create a batch make file, which works correctly from regular windows shell. It launches ORCA script commands, which get latest version from SC and then build the executable.

The ORCA script does not work, when launching from TFS agent with the same domain user. All I see in the log is this:

Source Management Initialization...

Can you tell me what must be done, so the build can be done automatically from TFS?

Thank you

Arcady

 

Accepted Answer
Arcady Abramov Accepted Answer Pending Moderation
  1. Wednesday, 23 October 2019 11:29 AM UTC
  2. PowerBuilder
  3. # Permalink

OK, let's close this case.

I worked around it by launching ps exec within the TFS agent. It loaded user profile and the builds started running.

Thank you, everyone

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 22 October 2019 16:35 PM UTC
  2. PowerBuilder
  3. # 1

Hi Arcady;

   Run the ORCASCript commands in the DOS Command window on your build PC ...

"Each line of an OrcaScript batch file either succeeds or fails. If a command fails, subsequent commands are not processed and the OrcaScript session is ended. An error message is printed to the command window."

HTH
Regards ... Chris

Comment
  1. Arcady Abramov
  2. Wednesday, 23 October 2019 06:36 AM UTC
Unfortunately, this is only true, when running from CMD on the same machine. When I try doing it from PS EXEC, there is no output in ORCA script
  1. Helpful
There are no comments made yet.
mike S Accepted Answer Pending Moderation
  1. Tuesday, 22 October 2019 14:01 PM UTC
  2. PowerBuilder
  3. # 2

it looks like it is failing on connecting to the SCC?  can you see if the login the scc worked?

How/where is the login info stored? registry? ini file?  do you have different security rights when running under the tfs agent ?  different path?

 

Comment
  1. Arcady Abramov
  2. Tuesday, 22 October 2019 16:10 PM UTC
Unfortunately, all I have the SSC log is that line in the first post.

No error, nothing.
  1. Helpful
  1. mike S
  2. Tuesday, 22 October 2019 17:08 PM UTC
are you calling that working batch file from TFS? If so, do a dir command to your log file to make sure you are in the directory/drive that you need to be.

it also might help if you post your orca script so ppl can see what you are doing.
  1. Helpful
  1. Arcady Abramov
  2. Wednesday, 23 October 2019 03:47 AM UTC
This is the ORCA script:

//-----------------------------------------------------------------

start session

set debug true

scc get connect properties "optima_dev.pbw"

scc set connect property logfile "Optima_dev_sc.log"

scc set connect property userid "user name"

scc set connect property password "pwd"

scc set connect property deletetempfiles true

scc connect

scc set target "milonit.pbt" "outofdate"

scc refresh target full

build executable ".\milonit.exe" ".\Images\Optima.ico" "" "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyynnnn"

end session



//---------------------------------------------------------------
  1. Helpful
There are no comments made yet.
Michael Kramer Accepted Answer Pending Moderation
  1. Tuesday, 22 October 2019 13:15 PM UTC
  2. PowerBuilder
  3. # 3

Hi Arcady,

Your ORCAScript must have access to PowerBuilder's ORCA interface (app = ORCASCR170.exe if running PB 2017) and the rest of PowerBuilder's development environment since the ORCA exe is simply a command-line access into the development tool.

Your ORCA script will therefore fail if you run it from a machine where PB IDE is not installed. ORCA script also fails if your PATH doesn't include the PB installed folders.

HTH /Michael

Comment
  1. Arcady Abramov
  2. Tuesday, 22 October 2019 16:09 PM UTC
Yes, unfortunately it does not help. There is still no output
  1. Helpful
  1. Chris Pollach @Appeon
  2. Tuesday, 22 October 2019 16:25 PM UTC
Is the SET DEBUG command the 1st line?
  1. Helpful
  1. Arcady Abramov
  2. Wednesday, 23 October 2019 03:45 AM UTC
right after "start session"
  1. Helpful
There are no comments made yet.
Arcady Abramov Accepted Answer Pending Moderation
  1. Tuesday, 22 October 2019 12:56 PM UTC
  2. PowerBuilder
  3. # 4

In addition, I can see that running the script with PS EXEC from a different machine provides the same result is from TFS GUI.

Please, tell me what is the different between running orca script locally and remotely.

Thank you

Arcady

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.