File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -703,17 +703,16 @@ def builder = new groovy.json.JsonBuilder(allInfo)
703
703
EOS
704
704
705
705
response_json = groovy_script_output
706
-
707
706
jobs = Array . new
708
- response_json [ "jobs" ] . each do |job |
709
- if job . is_a? ( Hash )
710
- if job . key? : _class and job [ : _class] !~ /com.cloudbees.hudson.plugins.folder.Folder/
707
+ JSON . parse ( response_json ) . each do |job |
708
+ if job . is_a? ( Hash )
709
+ if job . key? " _class" and job [ " _class" ] !~ /com.cloudbees.hudson.plugins.folder.Folder/
711
710
if ignorecase
712
- jobs << job [ : name] if job [ : name] =~ /#{ filter } /i
711
+ jobs << job [ " name" ] if job [ " name" ] =~ /#{ filter } /i
713
712
else
714
- jobs << job [ : name] if job [ : name] =~ /#{ filter } /
713
+ jobs << job [ " name" ] if job [ " name" ] =~ /#{ filter } /
715
714
end
716
- end
715
+ end
717
716
end
718
717
end
719
718
jobs . to_a
You can’t perform that action at this time.
0 commit comments