Getting error while running build.bat (Deployer ABE 10.7)

Could you please help identify the issue.
When I run the build script(build.bat), I am getting an error like
[exec] fatal: destination path ‘gitRemoteRepo’ already exists and is not an
empty directory.

I have attached the ABE build log. Also, attached the config files - build.xml, build-source-checkout.xml and build.properties.
build.xml (16.1 KB)
build-source-checkout.xml (2.1 KB)
build-properties.txt (7.0 KB)

The build.bat is the build script provided as part of ABE(Asset Build Environment) in Deployer.

In this scenario, I created a bare git repo in F:/gitRemoteRepo and pushed the code from local git repo(F:/GIT-DEV107) to it. After that, I am running the build script so that code is checked out from the gitRemoteRepo and into the F:/buildOutputDir.

The webMethods version is 10.7 but I guess the ABE functionality would be similar for lower versions also.

Thanks in advance….
Arnab
ABE_build_log.txt (1.9 KB)

Is this stopping from implementing your requirement. Your Build execution is success based the log files. You are seeing " [exec] fatal: destination path ‘gitRemoteRepo’ already exists and is not an
empty directory." is because your gitRemoteRepo is should be empty before it get Cloned. Include rm -rf to clean up the gitRepo, then pull it from remoteRepo add your changes and commit and push to remotebrach.

Thanks @DINESH_J .
Yes, although the Build execution shows as “success” but the build files are missing.
Actually, after writing wM code in Designer, I checked them in to the gitRemoteRepo.
Here, using the build config files, I am trying to check out the files from the gitRemoteRepo and then build them.
Would you please be able to tell me the relevant entries in the build config files ( build.xml, build-source-checkout.xml and build.properties) that I should insert/update to implement the below suggestion:

Include rm -rf to clean up the gitRepo, then pull it from remoteRepo add your changes and commit and push to remotebrach.

Hi Arnab,

Are you using local service development to check-in the Assets ?
How are you executing your build.bat script manually or through jenkins job ?
let me know the step you are performing for your check in and build creation process ?

I could see 2 error message from the log file.
1. [exec] fatal: destination path ‘gitRemoteRepo’ already exists and is not an
empty directory.

          gitRemoteRepo is not empty . kinldy go the file location and delete file if any . 

         ls -a - Will give you the all the files if any.
         rm -rf * - It will delete the files in the locaiton. 

        After doing the above step try to execute the build.xml file alone to create your build asset and check if it valid .
  1.  [java] [5/17/21 8:47 AM][MESSAGE] ispackage.ispackage: [GIT-DEV107] is not
    

an Integration Server package.

               Because of the corupted build generated in the previous step which caused this step to not able to generate the build asset correctly.

Try clearing your localGit repo and rerun your steps.

Thanks @DINESH_J
Actually, the gitRemoteRepo was getting cloned under F:/GIT-DEV107 so the error was coming.
It got resolved after I deleted the directory gitRemoteRepo from F:/GIT-DEV107.
However, the build files are still not getting created successfully.
Should I do a git checkout instead of git clone ?

Thanks
Arnab

Hi @DINESH_J
Any new ideas please ?
I decided to hard-code the directory in git clone as “F:/gitRemoteRepo”.
Still, getting the following error in the generate-composites step:

generate-composites:
[java] [5/24/21 1:08 PM][MESSAGE] ispackage.ispackage: Starting to read pac
kages hooks,info,objects,refs.
[java] [5/24/21 1:08 PM][MESSAGE] ispackage.ispackage: Starting to read pac
kage [hooks].
[java] [5/24/21 1:08 PM][MESSAGE] ispackage.ispackage: [hooks] is not an In
tegration Server package.
[java] [5/24/21 1:08 PM][MESSAGE] ispackage.ispackage: Starting to read pac
kage [info].
[java] [5/24/21 1:08 PM][MESSAGE] ispackage.ispackage: [info] is not an Int
egration Server package.
[java] [5/24/21 1:08 PM][MESSAGE] ispackage.ispackage: Starting to read pac
kage [objects].
[java] [5/24/21 1:08 PM][MESSAGE] ispackage.ispackage: [objects] is not an
Integration Server package.
[java] [5/24/21 1:08 PM][MESSAGE] ispackage.ispackage: Starting to read pac
kage [refs].
[java] [5/24/21 1:08 PM][MESSAGE] ispackage.ispackage: [refs] is not an Int
egration Server package.
[java] [5/24/21 1:08 PM][MESSAGE] ispackage.ispackage: Completed all packag
es.

This is the structure of the gitRemoteRepo folder.

It seems that it is looking for packages inside the folder gitRemoteRepo.

How do I make it checkout the files from the remote repo, then build the files ?

TIA !

Regards
Arnab

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.