1. Arcady Abramov
  2. PowerBuilder
  3. Wednesday, 16 October 2019 10:57 AM UTC

Hello, all

I am having a problem refreshing a target using Orca script with PB2017 and VSS.

All the objects in the library are refreshed, but the library itself is not - no new objects are downloaded, so the build fails. On the same machine from the PB IDE everything works correctly.

This is the script:

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

start session
scc get connect properties "workspace.pbw"
scc set connect property deletetempfiles true
scc set connect property logfile "workspace_sc.log"
scc connect
scc set target "target.pbt" refresh_all exclude_checkout
scc refresh target full
end session

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

 

Can someone tell me what is wrong and how to fix this?

Thank you

Arcady

Accepted Answer
John Raghanti Accepted Answer Pending Moderation
  1. Wednesday, 16 October 2019 12:19 PM UTC
  2. PowerBuilder
  3. # Permalink

Here's an example of an ORCA script that worked for us. We always used full paths, and I don't see that you're specifying credentials to log into VSS. Are you getting any error messages in your log file?

start session
SCC get connect properties "D:\Programming_II\PM_71\Automated\automate71.pbw"
SCC set connect property userid "USERNAME"
scc set connect property password "PASSWORD"
SCC set connect property logfile "D:\Programming_II\PM_71\Automated\scc.log"
SCC set connect property logappend "FALSE"
SCC set connect property deletetempfiles "TRUE"
SCC Connect
SCC set target "D:\Programming_II\PM_71\Automated\automate71.pbt" "refresh_all"
SCC refresh target "full"
SCC Close
end session

Comment
  1. Arcady Abramov
  2. Wednesday, 16 October 2019 14:06 PM UTC
I deleted all the PBG files and it started working for some reason....
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.