On Saturday, October 15, 2016 at 5:55:53 PM UTC+1, Rachel wrote:
>
> Hi Jonathan,
>
> I think that utility is not available. Alternatively, it's possible to use 
> find command (if Linux):
>
> node {
>    stage 'Create folders in workspace for showing'
>    sh '''#!/bin/bash +x
>          mkdir -p my_folder1/my_subfolder_1.1/my_subfolder_1.1.1
>          mkdir -p my_folder2/my_subfolder_2.1/
>          mkdir -p my_folder3/my_subfolder_3.1/my_subfolder_3.1.1
>          '''
>    stage 'List folders'
>    sh '''#!/bin/bash +x
>          for directory in `find $WORKSPACE -type d -name 
> \'my_subfolder_?.?.?*\'`; do
>              echo "$directory found, with parent: $(dirname $directory)"
>          done'''
> }
>
>
> *List folders* stage output:
>
>
> [workspace] Running shell script 
> ./my_folder1/my_subfolder_1.1/my_subfolder_1.1.1 found, with parent: 
> ./my_folder1/my_subfolder_1.1 
> ./my_folder3/my_subfolder_3.1/my_subfolder_3.1.1 found, with parent: 
> ./my_folder3/my_subfolder_3.1
>
>
> I hope be useful.
>
>
>
Thanks,

unfortunately I need a cross platform solution. I've not had much luck with 
running a shell under wimdows 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c5ea9a90-755d-4145-b6da-6d0d7674ce3c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to