Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!groovy
- node{
- stage("build jobs"){
- ws{
- git poll: true, credentialsId: 'xxxxx', url: 'ssh://git@aaaaa.cc.xxxxxx.com:/xxx/xxx-xxxx-xxxxx.git'
- checkout scm
- jobDsl(removedJobAction: 'DISABLE', removedViewAction: 'DELETE', targets: 'jobs/*.groovy', unstableOnDeprecation: true)
- }
- }
- }
- hudson.FilePath workspace = hudson.model.Executor.currentExecutor().getCurrentWorkspace()
- Processing DSL script pipeline.groovy
- java.lang.NullPointerException: Cannot invoke method getCurrentWorkspace() on null object
- at org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:91)
- at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:48)
- at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
- at org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:35)
- at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
- at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
- at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
- at pipeline.run(pipeline.groovy:1)
- at pipeline$run.call(Unknown Source)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement