copy file recursively - what is the correct wildcard?

51 views
Skip to first unread message

aristos....@gmail.com

unread,
Jun 11, 2024, 1:10:01 AMJun 11
to rundeck-discuss
I am trying to use the "Copy File" step. When I have it configured like this:

1.png

I get this error message:

2.png

And nothing is copied.

When I use the **/*.* wildcard:

3.png

I get this error message:

4.png

What is the correct way to just copy everything contained in that folder from source to destination recursively?

rac...@rundeck.com

unread,
Jun 11, 2024, 10:08:16 AMJun 11
to rundeck-discuss

Hi,

Which Python interpreter is specified in the node executor/file copier? I just tested in the following way with Python 3:

- defaultTab: nodes description: '' executionEnabled: true id: 4632749f-12e3-4f0a-b2f7-f9451cff3baf loglevel: INFO name: CopyFiles nodeFilterEditable: false nodefilters: dispatch: excludePrecedence: true keepgoing: false rankOrder: ascending successOnEmptyNodeFilter: false threadcount: '1' filter: 'name: windows ' nodesSelectedByDefault: true plugins: ExecutionLifecycle: {} scheduleEnabled: true sequence: commands: - configuration: destinationPath: C:\Users\Administrator\Desktop echo: 'true' pattern: '**/*.txt' recursive: 'true' sourcePath: /home/user/Downloads/test nodeStep: true type: copyfile keepgoing: false strategy: node-first uuid: 4632749f-12e3-4f0a-b2f7-f9451cff3baf

Regards.

aristos....@gmail.com

unread,
Jun 11, 2024, 9:25:13 PMJun 11
to rundeck-discuss
You are only copying .txt files. Like I said, I want to copy everything.

rac...@rundeck.com

unread,
Jun 12, 2024, 9:48:57 AMJun 12
to rundeck-discuss
Yes, it was just an example (it works by changing `**/*.txt` by `**/*.*`).

What about your Project Node Executor / File Copier? Which Python interpreter is specified there?

Regards.

aristos....@gmail.com

unread,
Jun 12, 2024, 11:44:48 PMJun 12
to rundeck-discuss
As I mention in my original post, I have already tried  **/*.*
I'm also showing a screenshot of the result.
The python interpreter is Python3.

rac...@rundeck.com

unread,
Jun 13, 2024, 10:02:27 AMJun 13
to rundeck-discuss
Hi,

It seems that you're using a Docker-based rundeck instance. Did you extend the image to include python3 in the container (needed by the pywinrm plugin)? Probably you're facing this.

If you have a python3 in your environment, which specific version are you using?

Also, could you share the service.log (docker log if you're using a Docker-based environment) when executing your job?

Greetings!
Reply all
Reply to author
Forward
0 new messages