Uploaded image for project: 'YADE - Yet Another Data Exchange Tool'
  1. YADE - Yet Another Data Exchange Tool
  2. YADE-436

For Remove Operation pre_commands are not started

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.11.4
    • 1.11.5, 1.12
    • YADE Client
    • None

    Description

      Current Situation

      • When user set the operation=remove with source_pre_commands, no pre_commands are started.
      • Same pre_commands are working with operation, copy and move
      • source_post_command is working as expected

      How to reproduce

      • See the attached YADE profile
        ;; Variant 01: Transfer file from localhost to remote server using SFTP
        [CopyLocalhost2RemoteServer]
        operation                           = remove
        file_spec                           = TRXDDLW[0-9]{4}.PDF$
        ;;
        source_protocol                     = local
        source_host                         = localhost
        source_dir                          = /home/jenkins/jade_test/out
        source_pre_command                  = echo "zip ${SourceFileName}_`date +%Y%m%d%H%M`.zip ${SourceFileName}" ; zip ${SourceFileName}_`date +%Y%m%d%H%M`.zip ${SourceFileName}
        source_post_command                 = touch ${SourceFileName}.post
        
        ;;
        target_host                         = homer.sos
        target_user                         = test
        target_protocol                     = SFTP
        target_ssh_auth_method              = password
        target_password                     = SUPER-PASSWORD
        target_dir                          = /home/test/inbound
        
        

      Desired Behaviour

      • YADE should start the source_pre_commands for remove operation.

      Attachments

        Issue Links

          There are no Sub-Tasks for this issue.

          Activity

            People

              re Robert Ehrlich
              mp Mahendra Patidar
              Mahendra Patidar Mahendra Patidar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: