I need to extract the first 3 characters of jenkinsfile parameter:
string(name: 'DB_Type', defaultValue: 'mysql' )
I tried the following but this did not work:
prefix=${params.db_type}
prefix=prefix.substring(0,2)
I need to extract the first 3 characters of jenkinsfile parameter:
string(name: 'DB_Type', defaultValue: 'mysql' )
I tried the following but this did not work:
prefix=${params.db_type}
prefix=prefix.substring(0,2)
Copyright © 2021 Jogjafile Inc.