pipeline {
  agent { label 'linux' }
  stages {
    stage('Use the token') {
      steps {
        withCredentials([string(credentialsId: 'api-token', variable: 'TOKEN')]) {
          sh 'echo "token length: ${#TOKEN}"'
        }
      }
    }
  }
}
