Read the content of the files into a Map instead of writing them to the workspace. The keys of the map will be the path of the files read. E.g. def v = unzip zipFile: 'example.zip', glob: '*.txt', read: true String version = v['version.txt']
def v = unzip zipFile: 'example.zip', glob: '*.txt', read: true String version = v['version.txt']