Issue Type: Bug Bug
Assignee: Jesse Glick
Components: workflow-plugin
Created: 02/Jan/15 7:16 PM
Description:

I am experimenting with the new workflow plugin to see if it meets my needs for iOS build and test workflow. I have a set of mac mini slaves connected to a linux master. I have written a simple groovy script that pulls our code from github, builds an iOS app, and archives the .ipa file, which is an iOS application package. The app is building successfully, and I see the .ipa file created in the workspace, but the workflow job is failing when I try to archive the .ipa file. I have similar jobs using the freestyle project setup that build .ipa files and archive them without problems. I am only seeing this problem when archiving using the jenkins workflow job.

******
This is my groovy script
******
node('xcode60'){
echo 'hello from Workflow'
git branch: 'dev', changelog: true, poll: true, url: '[email protected]:MyCompany/MyApplication'
sh 'git submodule init'
sh 'git submodule update'

sh '''
WORKSPACE=`pwd`
/usr/bin/security find-identity -p codesigning -v
/usr/bin/xcodebuild -version
/usr/bin/xcodebuild -showsdks
/usr/bin/xcodebuild -list
/usr/bin/xcodebuild -target MyApplication -sdk iphoneos -configuration Debug clean build
pwd
echo ${WORKSPACE}
BUNDLE_VERSION=`/usr/libexec/PlistBuddy -c "Print :CFBundleVersion" ${WORKSPACE}/build/Debug-iphoneos/MyApplication.app/Info.plist`
/usr/bin/xcrun -sdk iphoneos PackageApplication -v ${WORKSPACE}/build/Debug-iphoneos/MyApplication.app -o ${WORKSPACE}/build/Debug-iphoneos/MyApplication-${BUNDLE_VERSION}.ipa
'''
archive 'build/Debug-iphoneos/MyApplication-2.0.0.3630.ipa'

}

*******
This is the output from the console
********
Running: Archive Artifacts
Running: Allocate node : Body : End
Running: Allocate node : End
Running: End of Workflow
java.lang.NoClassDefFoundError: org/jenkinsci/plugins/workflow/steps/ArtifactArchiverStepExecution$ListFiles
at org.jenkinsci.plugins.workflow.steps.ArtifactArchiverStepExecution.run(ArtifactArchiverStepExecution.java:44)
at org.jenkinsci.plugins.workflow.steps.ArtifactArchiverStepExecution.run(ArtifactArchiverStepExecution.java:21)
at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousStepExecution.start(AbstractSynchronousStepExecution.java:34)
at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:137)
at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:98)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:15)
at WorkflowScript.run(WorkflowScript:19)
at Unknown.Unknown(Unknown)
at __cps.transform__(Native Method)
at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:69)
at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:100)
at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:76)
at sun.reflect.GeneratedMethodAccessor3700.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
at com.cloudbees.groovy.cps.Next.step(Next.java:58)
at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:145)
at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:164)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:267)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$000(CpsThreadGroup.java:70)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:176)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:174)
at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:47)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:111)
at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)

Environment: Master node is Linux amd64
Slave node is Mac OSX 10.9.4 x86_64
Jenkins version is 1.585

System Properties

Name ↓
Value
com.sun.akuma.Daemon daemonized
executable-war /usr/lib/jenkins/jenkins.war
file.encoding UTF-8
file.encoding.pkg sun.io
file.separator /
http.maxConnections 20
hudson.diyChunking true
java.awt.graphicsenv sun.awt.X11GraphicsEnvironment
java.awt.headless true
java.awt.printerjob sun.print.PSPrinterJob
java.class.path /usr/lib/jenkins/jenkins.war
java.class.version 50.0
java.endorsed.dirs /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/endorsed
java.ext.dirs /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/ext:/usr/java/packages/lib/ext
java.home /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
java.io.tmpdir /tmp
java.library.path /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.net.useSystemProxies true
java.runtime.name OpenJDK Runtime Environment
java.runtime.version 1.6.0_22-b22
java.specification.name Java Platform API Specification
java.specification.vendor Sun Microsystems Inc.
java.specification.version 1.6
java.vendor Sun Microsystems Inc.
java.vendor.url http://java.sun.com/
java.vendor.url.bug http://java.sun.com/cgi-bin/bugreport.cgi
java.version 1.6.0_22
java.vm.info mixed mode
java.vm.name OpenJDK 64-Bit Server VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Sun Microsystems Inc.
java.vm.specification.version 1.0
java.vm.vendor Sun Microsystems Inc.
java.vm.version 20.0-b11
javax.accessibility.assistive_technologies org.GNOME.Accessibility.JavaBridge
jcifs.smb.client.domain JIDomain
JENKINS_HOME /var/lib/jenkins
jna.platform.library.path /usr/lib64:/lib64:/usr/lib:/lib
line.separator
mail.smtp.sendpartial true
mail.smtps.sendpartial true
org.eclipse.jetty.server.Request.maxFormContentSize 5000000
os.arch amd64
os.name Linux
os.version 2.6.18-308.20.1.el5
path.separator :
sun.arch.data.model 64
sun.boot.class.path /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/resources.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/rt.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/jsse.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/jce.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/charsets.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/netx.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/plugin.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/rhino.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/modules/jdk.boot.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/classes
sun.boot.library.path /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64
sun.cpu.endian little
sun.cpu.isalist
sun.io.unicode.encoding UnicodeLittle
sun.java.command /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war --daemon --httpPort=8080 --ajp13Port=8009 --debug=10 --handlerCountMax=200 --handlerCountMaxIdle=20
sun.java.launcher SUN_STANDARD
sun.jnu.encoding UTF-8
sun.management.compiler HotSpot 64-Bit Tiered Compilers
sun.os.patch.level unknown
svnkit.http.methods Digest,Basic,NTLM,Negotiate
svnkit.ssh2.persistent false
svnkit.symlinks false
user.country US
user.dir /
user.home /var/lib/jenkins
user.language en
user.name jenkins
user.timezone America/Phoenix
Environment Variables

Name ↓
Value
_ /etc/alternatives/java
HOME /var/lib/jenkins
LANG en_US.UTF-8
LD_LIBRARY_PATH /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/../lib/amd64
LOGNAME jenkins
NLSPATH /usr/dt/lib/nls/msg/%L/%N.cat
PATH /sbin:/usr/sbin:/bin:/usr/bin
PWD /
Realtor_iOS_Current_Version 4.6.1
SHELL /bin/bash
SHLVL 3
TERM ansi
USER jenkins
XFILESEARCHPATH /usr/dt/app-defaults/%L/Dt
Plugins

Name ↓
Version
Enabled
Pinned
active-directory 1.30 true false
analysis-core 1.48 true false
android-emulator 2.10 true false
android-lint 2.0.1 true false
ant 1.2 true false
antisamy-markup-formatter 1.1 true false
any-buildstep 0.1 false false
artifactdeployer 0.25 true false
build-monitor-plugin 1.6+build.132 true false
build-name-setter 1.3 true false
build-pipeline-plugin 1.3.3 true false
build-timeout 1.11 true false
buildtriggerbadge 0.9 true false
changelog-history 1.3 true false
claim 2.3 true false
conditional-buildstep 1.2.1 true false
config-file-provider 2.7.4 true false
copyartifact 1.25 true false
credentials 1.20 true true
cucumber-reports 0.0.23 true false
cucumber-testresult-plugin 0.6.0 true false
cvs 2.12 true true
display-upstream-changes 0.1 true false
dropdown-viewstabbar-plugin 1.6 true false
durable-task 1.1 true false
dynamic_extended_choice_parameter 1.0.1 true false
email-ext 2.25 true false
emma 1.29 true false
envinject 1.73 true false
extended-choice-parameter 0.34 true false
external-monitor-job 1.2 true false
flexible-publish 0.10 false false
ftppublisher 1.2 true false
ghprb 1.4 true false
git 2.3.2 true false
git-client 1.13.0 true false
git-parameter 0.2 true false
git-server 1.6 true false
github 1.4 true false
github-api 1.33 true false
github-oauth 0.12 true false
gradle 1.24 true false
greenballs 1.12 true false
heroku-jenkins-plugin 0.7.1-BETA true false
hockeyapp 1.0.3 true false
htmlpublisher 1.0 true false
http_request 1.7 true false
instant-messaging 1.25 true false
iphoneview 0.2 true false
javadoc 1.1 true false
jclouds-jenkins 2.3.1 true false
jobConfigHistory 2.0 true false
jquery 1.7.2-1 true false
junit 1.0 true false
junit-attachments 1.3 true false
ldap 1.2 true true
log-parser 1.0.8 true false
mailer 1.11 true false
managed-scripts 1.1.1 true false
mapdb-api 1.0.1.0 true false
matrix-auth 1.1 true false
matrix-project 1.4 true true
maven-plugin 2.5 true false
pam-auth 1.1 true false
parameterized-trigger 2.16 true false
performance 1.8 true false
port-allocator 1.5 true false
powershell 1.2 true false
promoted-builds 2.19 true false
publish-over-cifs 0.2 false false
publish-over-ftp 1.8 false false
publish-over-ssh 1.11 true false
pwauth 0.4 false false
python 1.2 true false
rake 1.7.7 true false
regexemail 0.3 true false
role-strategy 2.2.0 true false
ruby 1.2 true false
ruby-runtime 0.12 true false
run-condition 0.10 true false
rundeck 2.11 true false
rvm 0.4 true false
scm-api 0.2 true false
scp 1.8 true false
script-security 1.12 true false
seleniumhtmlreport 0.94 true false
sicci_for_xcode 0.0.8 true false
ssh-credentials 1.10 true true
ssh-slaves 0.22 true true
statusmonitor 1.3 true false
subversion 2.4.5 true true
svn-release-mgr 1.2 true false
svnpublisher 0.1 false false
testflight 1.3.1 true false
throttle-concurrents 1.7.2 true false
token-macro 1.10 true false
translation 1.10 true false
view-job-filters 1.26 true false
windows-slaves 1.0 true false
workflow-aggregator 1.1 true false
workflow-api 1.1 true false
workflow-basic-steps 1.1 true false
workflow-cps 1.1 true false
workflow-cps-global-lib 1.1 true false
workflow-durable-task-step 1.1 true false
workflow-job 1.1 true false
workflow-scm-step 1.1 true false
workflow-step-api 1.1 true false
workflow-support 1.1 true false
ws-cleanup 0.10 true false
xcode-plugin 1.4.6 true false
xunit 1.51 true false
Project: Jenkins
Priority: Minor Minor
Reporter: Chris Taclas
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to