SHARE
TWEET

Untitled

a guest Mar 23rd, 2017 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Error:
  2.  
  3. org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
  4. WorkflowScript: 7: Expected a step @ line 7, column 17.
  5.                    env.ENVIRONMENT = input message: 'Deploy to a development environment', parameters: [choice(choices: 'development\ndevelopment-workers', description: '', name: 'ENVIRONMENT')]
  6.                    ^
  7.  
  8. 1 error
  9.  
  10. Jenkinsfile:
  11.  
  12. stages {
  13.     stage('Deploy') {
  14.         steps {
  15.             env.ENVIRONMENT = input message: 'Deploy to a development environment', parameters: [choice(choices: 'development\ndevelopment-workers', description: '', name: 'ENVIRONMENT')]
  16.             echo "Deploying.... ${env.ENVIRONMENT}"
  17.             sh 'env'
  18.             sh 'echo ${env.ENVIRONMENT}'
  19.         }
  20.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top