Skip to content

Instantly share code, notes, and snippets.

@Kairo-Dai
Last active August 28, 2020 07:23
Show Gist options
  • Save Kairo-Dai/c886a62064458df3915d33f61e6afe80 to your computer and use it in GitHub Desktop.
Save Kairo-Dai/c886a62064458df3915d33f61e6afe80 to your computer and use it in GitHub Desktop.
Jenkinsfile获取最后一行
def mystr = """
asf
asdf
asdfasdf
1123
sssssss
"""
mystr.tokenize().last()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment