Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can refer to it from your script as follow

Code Block
languagegroovy
withCredentials([string(credentialsId: 'sl.agent.token.dev.cs', variable: 'SL_TOKEN')]) {
  sh '''
  echo -n "$SL_TOKEN" > sltoken.txt
  '''
}

...