Appian version manager not working as expeced.

I am trying to use Appian version manager as given in Appian documentation.

https://community.appian.com/w/the-appian-playbook/198/deployment-automation#Automated_Versioning_Manager

I am trying to use -action as addContents and it is giving me an error as below

"java.lang.IllegalStateException: Error: the Zip file cannot be committed to the respository. The Zip file contains one or more application XML file and version toool has been invoked with paramameter -UUID signaling it should be patch"

 

I am using below command and also updated attributes/parameter in version-manager.properties file.

version-application.bat  -action addContents -vc_username (VC_USERNAME) -vc_password (VC_PASSWORD) -application_path "C:\\Users\\43987901\\Downloads\\Country Flag Icons.zip" -commit_message “Commit by@439879

below are parameter defined in version-manager.properties as well.

action=addContents

commitMessage="Commit by@439879"

localRepoPath=C:\\Developer_Appian

repoUrl=https://alm-github.uk.hsbc/HSBC-GST/Developer_Appian

uuid=_a-0000de51-e49e-8000-9ba2-011c48011c48_16348

vcPassword=GIT_Username

vcUsername=GIT_password

versionControlType=GIT
repoUrl=https://alm-github.systems.uk.hsbc/HSBC-GST/Developer_Appian

Can anyone please let me know probably cause for the above error....

Thanks in advance

  Discussion posts and replies are publicly visible

Parents
  • Hi bradc, I hope you are doing good. i am getting an error after running command for build package option.

    Command

    version-application.bat -action buildPackage -vc_username 43987901 -vc_password passwd -start_hash 6ca23a9 -end_hash d6a4316

    i have used start hash df070738e05f33d88d0956ccab72ed831315b42e which was generated after running first addContents command while commiting application.
    I have also used commit alpha numeric number in github for this. This is my first buildpackage command, do i need to some thing else to make it successful?
    I also keep below option as uncommented in .properties file
    packagePath=C:\\Users\\43987901\\Desktop\\PROD_DEPLOY_BACKUP_10172017\\Test_Patch_VM_Mandar_sandbox

    2018-03-23 16:39:40,512 [main] ERROR com.appiancorp.ps.automatedversioning.AutomatedVersioningManager - Details of error:
    java.nio.file.FileAlreadyExistsException: C:\Users\43987901\Desktop\PROD_DEPLOY_BACKUP_10172017\Test_Patch_VM_Mandar_sandbox
    at com.appiancorp.ps.automatedversioning.helper.PackageGenerationHelper.getPackageFile(PackageGenerationHelper.java:164)
    at com.appiancorp.ps.automatedversioning.helper.PackageGenerationHelper.createZipFileFromChangedFiles(PackageGenerationHelper.java:76)
    at com.appiancorp.ps.automatedversioning.helper.PackageGenerationHelper.generatePackage(PackageGenerationHelper.java:55)
    at com.appiancorp.ps.automatedversioning.VCSAndBuildController.buildPackage(VCSAndBuildController.java:145)
    at com.appiancorp.ps.automatedversioning.AutomatedVersioningManager.main(AutomatedVersioningManager.java:116)
Reply
  • Hi bradc, I hope you are doing good. i am getting an error after running command for build package option.

    Command

    version-application.bat -action buildPackage -vc_username 43987901 -vc_password passwd -start_hash 6ca23a9 -end_hash d6a4316

    i have used start hash df070738e05f33d88d0956ccab72ed831315b42e which was generated after running first addContents command while commiting application.
    I have also used commit alpha numeric number in github for this. This is my first buildpackage command, do i need to some thing else to make it successful?
    I also keep below option as uncommented in .properties file
    packagePath=C:\\Users\\43987901\\Desktop\\PROD_DEPLOY_BACKUP_10172017\\Test_Patch_VM_Mandar_sandbox

    2018-03-23 16:39:40,512 [main] ERROR com.appiancorp.ps.automatedversioning.AutomatedVersioningManager - Details of error:
    java.nio.file.FileAlreadyExistsException: C:\Users\43987901\Desktop\PROD_DEPLOY_BACKUP_10172017\Test_Patch_VM_Mandar_sandbox
    at com.appiancorp.ps.automatedversioning.helper.PackageGenerationHelper.getPackageFile(PackageGenerationHelper.java:164)
    at com.appiancorp.ps.automatedversioning.helper.PackageGenerationHelper.createZipFileFromChangedFiles(PackageGenerationHelper.java:76)
    at com.appiancorp.ps.automatedversioning.helper.PackageGenerationHelper.generatePackage(PackageGenerationHelper.java:55)
    at com.appiancorp.ps.automatedversioning.VCSAndBuildController.buildPackage(VCSAndBuildController.java:145)
    at com.appiancorp.ps.automatedversioning.AutomatedVersioningManager.main(AutomatedVersioningManager.java:116)
Children