1. Amit De Picciotto
  2. PowerBuilder
  3. Monday, 13 June 2022 15:04 PM UTC

Dear all,

As part of the enhancements that PB 2021 have to offer, I'm tiring to deploy using pbautobuild210.exe

 

Since I'm using team foundation (or TFVC, as appear on the dev azure pipeline)

I try to use the VSS option on the JSON definition file and I get the following error:

 

  16:28:08 [Normal] Start processing parse json to model code segment.
16:28:08 [Normal] End processing parse json to model code segment.
16:28:08 [Normal] Start processing download source code segment.
16:28:08 [Normal] Start downloading the source code.
16:28:08 [Normal] Execute VSS init
16:28:08 [Error] Failed to read the connection properties for Microsoft Visual SourceSafe. An error occurred when reading the Windows registry entry.
16:28:08 [Error] Failed to execute the VSS init command.
Bye (-_-)

 

The parameters:

"SrcPath": --> The URL for the repository (https://dev.azure.com/xxx")

user, password

"DestPath": "S:\\xxx

 

VIa the PB 2021 I can preform the get latest version action without problems.

Any idea?

Thanks!

 

Amit De Picciotto Accepted Answer Pending Moderation
  1. Wednesday, 15 June 2022 12:50 PM UTC
  2. PowerBuilder
  3. # 1

Thanks!

So, The best option is to move PB code to GIT, in order to avoid work arounds to support TFS.

 

So, When using GIT, include merge, I don't need the ORCA in order to import the source code (srd, srw, ...) to the PBLs, is that right?

Basically, If I will use bat file to 'get latest version\ with tf.exe - it will require the ORCA import step, correct?

 

Thanks for the helpful answer!

Comment
  1. Ken Guo @Appeon
  2. Friday, 17 June 2022 01:14 AM UTC
Hi Amit,



If you use PBAutoBuild then you don’t need ORCA anymore.



Q: When using GIT, include merge, I don't need the ORCA in order to import the source code (srd, srw, ...) to the PBLs, is that right?

A: Correct.

Q: If I will use bat file to 'get latest version\ with tf.exe - it will require the ORCA import step, correct?

A: No. You don’t need the ORCA Import step in this case. If you use the bat file to download all source code object files (srd, srw…), you just need to set Merge section in PBAutoBuild then it will import the source code to PBL.



Git and Merge in PBAutoBuild have no dependency on each other. They can be used both together and separately.



Regards,

Ken
  1. Helpful 2
There are no comments made yet.
Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 14 June 2022 08:25 AM UTC
  2. PowerBuilder
  3. # 2

Hi Amit,

PBAutoBuild only supports downloading source code by using GIT, SVN, and VSS. It doesn’t support Team Foundation Server (TFS).

I suggest you work around it by using any of the following solutions:

Solution 1: Use GIT to connect to Team Foundation Server (TFS).
Once GIT connects to TFS, you can set GIT in PBAutobuild to download the source code from TFS.

Solution 2: Use a bat file to download the source code from TFS.
For example, create a download_tfs.bat file. Code in this bat file to make it download source code from TFS, then call this bat file in PreCommand:
{
"MetaInfo": {
"IDEVersion": "210",
"RuntimeVersion": "21.0.0.1509"
},
"BuildPlan": {
"SourceControl": {
"PreCommand": "download_tfs.bat",
"SVN": [
{"SrcPath": "","User": "","Password": "","DestPath": "","Proxy": {"Ip": "","Port": 0,"Username": "","Password": ""}}
],
"Git": [
{"SrcPath": "","User": "","Password": "","DestPath": "","Proxy": {"Ip": "","Port": 0,"Username": "","Password": ""}}
],
"VSS": [
{"SrcPath": "","User": "","Password": "","DestPath": ""}
],


Regards,
Ken

Comment
  1. Amit De Picciotto
  2. Saturday, 18 June 2022 20:35 PM UTC
Many thanks for the answer, it is answering my questions, thanks!
  1. Helpful
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.