|
Jens Kohl created JENKINS-12237:
----------------------------------- Summary: Failed deleting previous generated IPA results in a failed build Key: JENKINS-12237 URL: https://issues.jenkins-ci.org/browse/JENKINS-12237 Project: Jenkins Issue Type: Bug Components: xcode Affects Versions: current Environment: OS X 10.7, Xcode 4.2 Reporter: Jens Kohl Priority: Blocker Here's from my build log after xcodebuild successfully build a workspace. Because the plugin has some trouble after I migrated from a custom build early version of your plugin (before it was in the official repo), I deleted the build directory manually. After that I rerun the build process and stumbled upon the following error message. IMO a delete operation should never block a build, because of not existing file. What's the point here? Deleting a non existing file does not exist, which was the intention of the delete operation. 15:44:11 Cleaning up previously generate .ipa files 15:44:11 FATAL: /Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos does not exist. 15:44:11 /Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos does not exist. 15:44:11 at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:474) 15:44:11 at hudson.FilePath.glob(FilePath.java:1240) 15:44:11 at hudson.FilePath.access$600(FilePath.java:164) 15:44:11 at hudson.FilePath$23.invoke(FilePath.java:1219) 15:44:11 at hudson.FilePath$23.invoke(FilePath.java:1217) 15:44:12 at hudson.FilePath.act(FilePath.java:758) 15:44:12 at hudson.FilePath.act(FilePath.java:740) 15:44:12 at hudson.FilePath.list(FilePath.java:1217) 15:44:12 at hudson.FilePath.list(FilePath.java:1203) 15:44:12 at au.com.rayh.XCodeBuilder.perform(XCodeBuilder.java:356) 15:44:12 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 15:44:12 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:693) 15:44:12 at hudson.model.Build$RunnerImpl.build(Build.java:178) 15:44:12 at hudson.model.Build$RunnerImpl.doRun(Build.java:139) 15:44:12 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:459) 15:44:12 at hudson.model.Run.run(Run.java:1376) 15:44:12 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 15:44:12 at hudson.model.ResourceController.execute(ResourceController.java:88) 15:44:12 at hudson.model.Executor.run(Executor.java:230) By the way, the IPA creation looks a bit messy to me. xcodebuild's CONFIGURATION_BUILD_DIR states the following for my project: setenv CONFIGURATION_BUILD_DIR /Users/Shared/Jenkins/Home/jobs/myProject/workspace/DerivedData/myProject/Build/Products/Release_Hockey-iphoneos but xcrun tries to find the *.app file in /Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos (yeah, I didn't configure a special build output directory, it's empty, so the default value is $xcode_proj_dir/build ?!?). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
[ https://issues.jenkins-ci.org/browse/JENKINS-12237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=157150#comment-157150 ] aheritier commented on JENKINS-12237: ------------------------------------- which version of the xcode plugin are you using ? We fixed an issue really similar to the one you have in 1.2.2 In fact it makes me think that I fixed the origin of the issue (how was computed the build dir) but I forgot to trap this error more properly. The build directory is computed like this : https://github.com/jenkinsci/xcode-plugin/blob/master/src/main/java/au/com/rayh/XCodeBuilder.java#L168 if the build directory path is specified then it is used else if the SYMROOT is configured then we use $SYMROOT/$CONFIGURATION-$BUILDPLATFORM else we use $PROJECT_ROOT/build/$CONFIGURATION-$BUILDPLATFORM Is it wrong ? > Failed deleting previous generated IPA results in a failed build > ---------------------------------------------------------------- > > Key: JENKINS-12237 > URL: https://issues.jenkins-ci.org/browse/JENKINS-12237 > Project: Jenkins > Issue Type: Bug > Components: xcode > Affects Versions: current > Environment: OS X 10.7, Xcode 4.2 > Reporter: Jens Kohl > Priority: Blocker > Labels: plugin, xcode > > Here's from my build log after xcodebuild successfully build a workspace. > Because the plugin has some trouble after I migrated from a custom build early version of your plugin (before it was in the official repo), I deleted the build directory manually. After that I rerun the build process and stumbled upon the following error message. IMO a delete operation should never block a build, because of not existing file. What's the point here? Deleting a non existing file does not exist, which was the intention of the delete operation. > 15:44:11 Cleaning up previously generate .ipa files > 15:44:11 FATAL: /Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos does not exist. > 15:44:11 /Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos does not exist. > 15:44:11 at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:474) > 15:44:11 at hudson.FilePath.glob(FilePath.java:1240) > 15:44:11 at hudson.FilePath.access$600(FilePath.java:164) > 15:44:11 at hudson.FilePath$23.invoke(FilePath.java:1219) > 15:44:11 at hudson.FilePath$23.invoke(FilePath.java:1217) > 15:44:12 at hudson.FilePath.act(FilePath.java:758) > 15:44:12 at hudson.FilePath.act(FilePath.java:740) > 15:44:12 at hudson.FilePath.list(FilePath.java:1217) > 15:44:12 at hudson.FilePath.list(FilePath.java:1203) > 15:44:12 at au.com.rayh.XCodeBuilder.perform(XCodeBuilder.java:356) > 15:44:12 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) > 15:44:12 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:693) > 15:44:12 at hudson.model.Build$RunnerImpl.build(Build.java:178) > 15:44:12 at hudson.model.Build$RunnerImpl.doRun(Build.java:139) > 15:44:12 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:459) > 15:44:12 at hudson.model.Run.run(Run.java:1376) > 15:44:12 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) > 15:44:12 at hudson.model.ResourceController.execute(ResourceController.java:88) > 15:44:12 at hudson.model.Executor.run(Executor.java:230) > By the way, the IPA creation looks a bit messy to me. xcodebuild's CONFIGURATION_BUILD_DIR states the following for my project: > setenv CONFIGURATION_BUILD_DIR /Users/Shared/Jenkins/Home/jobs/myProject/workspace/DerivedData/myProject/Build/Products/Release_Hockey-iphoneos > but xcrun tries to find the *.app file in /Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos (yeah, I didn't configure a special build output directory, it's empty, so the default value is $xcode_proj_dir/build ?!?). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
In reply to this post by JIRA noreply@jenkins-ci.org
[ https://issues.jenkins-ci.org/browse/JENKINS-12237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] > Failed deleting previous generated IPA results in a failed build > ---------------------------------------------------------------- > > Key: JENKINS-12237 > URL: https://issues.jenkins-ci.org/browse/JENKINS-12237 > Project: Jenkins > Issue Type: Bug > Components: xcode > Affects Versions: current > Environment: OS X 10.7, Xcode 4.2 > Reporter: Jens Kohl > Priority: Blocker > Labels: plugin, xcode > > Here's from my build log after xcodebuild successfully build a workspace. > Because the plugin has some trouble after I migrated from a custom build early version of your plugin (before it was in the official repo), I deleted the build directory manually. After that I rerun the build process and stumbled upon the following error message. IMO a delete operation should never block a build, because of not existing file. What's the point here? Deleting a non existing file does not exist, which was the intention of the delete operation. > 15:44:11 Cleaning up previously generate .ipa files > 15:44:11 FATAL: /Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos does not exist. > 15:44:11 /Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos does not exist. > 15:44:11 at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:474) > 15:44:11 at hudson.FilePath.glob(FilePath.java:1240) > 15:44:11 at hudson.FilePath.access$600(FilePath.java:164) > 15:44:11 at hudson.FilePath$23.invoke(FilePath.java:1219) > 15:44:11 at hudson.FilePath$23.invoke(FilePath.java:1217) > 15:44:12 at hudson.FilePath.act(FilePath.java:758) > 15:44:12 at hudson.FilePath.act(FilePath.java:740) > 15:44:12 at hudson.FilePath.list(FilePath.java:1217) > 15:44:12 at hudson.FilePath.list(FilePath.java:1203) > 15:44:12 at au.com.rayh.XCodeBuilder.perform(XCodeBuilder.java:356) > 15:44:12 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) > 15:44:12 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:693) > 15:44:12 at hudson.model.Build$RunnerImpl.build(Build.java:178) > 15:44:12 at hudson.model.Build$RunnerImpl.doRun(Build.java:139) > 15:44:12 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:459) > 15:44:12 at hudson.model.Run.run(Run.java:1376) > 15:44:12 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) > 15:44:12 at hudson.model.ResourceController.execute(ResourceController.java:88) > 15:44:12 at hudson.model.Executor.run(Executor.java:230) > By the way, the IPA creation looks a bit messy to me. xcodebuild's CONFIGURATION_BUILD_DIR states the following for my project: > setenv CONFIGURATION_BUILD_DIR /Users/Shared/Jenkins/Home/jobs/myProject/workspace/DerivedData/myProject/Build/Products/Release_Hockey-iphoneos > but xcrun tries to find the *.app file in /Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos (yeah, I didn't configure a special build output directory, it's empty, so the default value is $xcode_proj_dir/build ?!?). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
In reply to this post by JIRA noreply@jenkins-ci.org
[ https://issues.jenkins-ci.org/browse/JENKINS-12237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] aheritier updated JENKINS-12237: -------------------------------- Attachment: xcode-plugin.jar You can try this SNAPSHOT. I should have handled the error. > Failed deleting previous generated IPA results in a failed build > ---------------------------------------------------------------- > > Key: JENKINS-12237 > URL: https://issues.jenkins-ci.org/browse/JENKINS-12237 > Project: Jenkins > Issue Type: Bug > Components: xcode > Affects Versions: current > Environment: OS X 10.7, Xcode 4.2 > Reporter: Jens Kohl > Priority: Blocker > Labels: plugin, xcode > Attachments: xcode-plugin.hpi, xcode-plugin.jar > > > Here's from my build log after xcodebuild successfully build a workspace. > Because the plugin has some trouble after I migrated from a custom build early version of your plugin (before it was in the official repo), I deleted the build directory manually. After that I rerun the build process and stumbled upon the following error message. IMO a delete operation should never block a build, because of not existing file. What's the point here? Deleting a non existing file does not exist, which was the intention of the delete operation. > 15:44:11 Cleaning up previously generate .ipa files > 15:44:11 FATAL: /Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos does not exist. > 15:44:11 /Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos does not exist. > 15:44:11 at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:474) > 15:44:11 at hudson.FilePath.glob(FilePath.java:1240) > 15:44:11 at hudson.FilePath.access$600(FilePath.java:164) > 15:44:11 at hudson.FilePath$23.invoke(FilePath.java:1219) > 15:44:11 at hudson.FilePath$23.invoke(FilePath.java:1217) > 15:44:12 at hudson.FilePath.act(FilePath.java:758) > 15:44:12 at hudson.FilePath.act(FilePath.java:740) > 15:44:12 at hudson.FilePath.list(FilePath.java:1217) > 15:44:12 at hudson.FilePath.list(FilePath.java:1203) > 15:44:12 at au.com.rayh.XCodeBuilder.perform(XCodeBuilder.java:356) > 15:44:12 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) > 15:44:12 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:693) > 15:44:12 at hudson.model.Build$RunnerImpl.build(Build.java:178) > 15:44:12 at hudson.model.Build$RunnerImpl.doRun(Build.java:139) > 15:44:12 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:459) > 15:44:12 at hudson.model.Run.run(Run.java:1376) > 15:44:12 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) > 15:44:12 at hudson.model.ResourceController.execute(ResourceController.java:88) > 15:44:12 at hudson.model.Executor.run(Executor.java:230) > By the way, the IPA creation looks a bit messy to me. xcodebuild's CONFIGURATION_BUILD_DIR states the following for my project: > setenv CONFIGURATION_BUILD_DIR /Users/Shared/Jenkins/Home/jobs/myProject/workspace/DerivedData/myProject/Build/Products/Release_Hockey-iphoneos > but xcrun tries to find the *.app file in /Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos (yeah, I didn't configure a special build output directory, it's empty, so the default value is $xcode_proj_dir/build ?!?). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
In reply to this post by JIRA noreply@jenkins-ci.org
[ https://issues.jenkins-ci.org/browse/JENKINS-12237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] aheritier updated JENKINS-12237: -------------------------------- Attachment: xcode-plugin.hpi The hpi (more useful :-) ) > Failed deleting previous generated IPA results in a failed build > ---------------------------------------------------------------- > > Key: JENKINS-12237 > URL: https://issues.jenkins-ci.org/browse/JENKINS-12237 > Project: Jenkins > Issue Type: Bug > Components: xcode > Affects Versions: current > Environment: OS X 10.7, Xcode 4.2 > Reporter: Jens Kohl > Priority: Blocker > Labels: plugin, xcode > Attachments: xcode-plugin.hpi, xcode-plugin.jar > > > Here's from my build log after xcodebuild successfully build a workspace. > Because the plugin has some trouble after I migrated from a custom build early version of your plugin (before it was in the official repo), I deleted the build directory manually. After that I rerun the build process and stumbled upon the following error message. IMO a delete operation should never block a build, because of not existing file. What's the point here? Deleting a non existing file does not exist, which was the intention of the delete operation. > 15:44:11 Cleaning up previously generate .ipa files > 15:44:11 FATAL: /Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos does not exist. > 15:44:11 /Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos does not exist. > 15:44:11 at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:474) > 15:44:11 at hudson.FilePath.glob(FilePath.java:1240) > 15:44:11 at hudson.FilePath.access$600(FilePath.java:164) > 15:44:11 at hudson.FilePath$23.invoke(FilePath.java:1219) > 15:44:11 at hudson.FilePath$23.invoke(FilePath.java:1217) > 15:44:12 at hudson.FilePath.act(FilePath.java:758) > 15:44:12 at hudson.FilePath.act(FilePath.java:740) > 15:44:12 at hudson.FilePath.list(FilePath.java:1217) > 15:44:12 at hudson.FilePath.list(FilePath.java:1203) > 15:44:12 at au.com.rayh.XCodeBuilder.perform(XCodeBuilder.java:356) > 15:44:12 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) > 15:44:12 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:693) > 15:44:12 at hudson.model.Build$RunnerImpl.build(Build.java:178) > 15:44:12 at hudson.model.Build$RunnerImpl.doRun(Build.java:139) > 15:44:12 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:459) > 15:44:12 at hudson.model.Run.run(Run.java:1376) > 15:44:12 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) > 15:44:12 at hudson.model.ResourceController.execute(ResourceController.java:88) > 15:44:12 at hudson.model.Executor.run(Executor.java:230) > By the way, the IPA creation looks a bit messy to me. xcodebuild's CONFIGURATION_BUILD_DIR states the following for my project: > setenv CONFIGURATION_BUILD_DIR /Users/Shared/Jenkins/Home/jobs/myProject/workspace/DerivedData/myProject/Build/Products/Release_Hockey-iphoneos > but xcrun tries to find the *.app file in /Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos (yeah, I didn't configure a special build output directory, it's empty, so the default value is $xcode_proj_dir/build ?!?). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
In reply to this post by JIRA noreply@jenkins-ci.org
[ https://issues.jenkins-ci.org/browse/JENKINS-12237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=157620#comment-157620 ] aheritier commented on JENKINS-12237: ------------------------------------- I don't understand why {{CONFIGURATION_BUILD_DIR}} is set to {code}/Users/Shared/Jenkins/Home/jobs/myProject/workspace/DerivedData/myProject/Build/Products/Release_Hockey-iphoneos{code} While the plugin uses by default : {code}/Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos{code} Did you define a {{CONFIGURATION_BUILD_DIR}} in your project configuration ? > Failed deleting previous generated IPA results in a failed build > ---------------------------------------------------------------- > > Key: JENKINS-12237 > URL: https://issues.jenkins-ci.org/browse/JENKINS-12237 > Project: Jenkins > Issue Type: Bug > Components: xcode > Affects Versions: current > Environment: OS X 10.7, Xcode 4.2 > Reporter: Jens Kohl > Priority: Blocker > Labels: plugin, xcode > Attachments: xcode-plugin.hpi, xcode-plugin.jar > > > Here's from my build log after xcodebuild successfully build a workspace. > Because the plugin has some trouble after I migrated from a custom build early version of your plugin (before it was in the official repo), I deleted the build directory manually. After that I rerun the build process and stumbled upon the following error message. IMO a delete operation should never block a build, because of not existing file. What's the point here? Deleting a non existing file does not exist, which was the intention of the delete operation. > 15:44:11 Cleaning up previously generate .ipa files > 15:44:11 FATAL: /Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos does not exist. > 15:44:11 /Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos does not exist. > 15:44:11 at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:474) > 15:44:11 at hudson.FilePath.glob(FilePath.java:1240) > 15:44:11 at hudson.FilePath.access$600(FilePath.java:164) > 15:44:11 at hudson.FilePath$23.invoke(FilePath.java:1219) > 15:44:11 at hudson.FilePath$23.invoke(FilePath.java:1217) > 15:44:12 at hudson.FilePath.act(FilePath.java:758) > 15:44:12 at hudson.FilePath.act(FilePath.java:740) > 15:44:12 at hudson.FilePath.list(FilePath.java:1217) > 15:44:12 at hudson.FilePath.list(FilePath.java:1203) > 15:44:12 at au.com.rayh.XCodeBuilder.perform(XCodeBuilder.java:356) > 15:44:12 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) > 15:44:12 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:693) > 15:44:12 at hudson.model.Build$RunnerImpl.build(Build.java:178) > 15:44:12 at hudson.model.Build$RunnerImpl.doRun(Build.java:139) > 15:44:12 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:459) > 15:44:12 at hudson.model.Run.run(Run.java:1376) > 15:44:12 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) > 15:44:12 at hudson.model.ResourceController.execute(ResourceController.java:88) > 15:44:12 at hudson.model.Executor.run(Executor.java:230) > By the way, the IPA creation looks a bit messy to me. xcodebuild's CONFIGURATION_BUILD_DIR states the following for my project: > setenv CONFIGURATION_BUILD_DIR /Users/Shared/Jenkins/Home/jobs/myProject/workspace/DerivedData/myProject/Build/Products/Release_Hockey-iphoneos > but xcrun tries to find the *.app file in /Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos (yeah, I didn't configure a special build output directory, it's empty, so the default value is $xcode_proj_dir/build ?!?). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
In reply to this post by JIRA noreply@jenkins-ci.org
[ https://issues.jenkins-ci.org/browse/JENKINS-12237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=157623#comment-157623 ] aheritier commented on JENKINS-12237: ------------------------------------- Fix to avoid the deletion error will be applied in 1.3 > Failed deleting previous generated IPA results in a failed build > ---------------------------------------------------------------- > > Key: JENKINS-12237 > URL: https://issues.jenkins-ci.org/browse/JENKINS-12237 > Project: Jenkins > Issue Type: Bug > Components: xcode > Affects Versions: current > Environment: OS X 10.7, Xcode 4.2 > Reporter: Jens Kohl > Priority: Blocker > Labels: plugin, xcode > Attachments: xcode-plugin.hpi, xcode-plugin.jar > > > Here's from my build log after xcodebuild successfully build a workspace. > Because the plugin has some trouble after I migrated from a custom build early version of your plugin (before it was in the official repo), I deleted the build directory manually. After that I rerun the build process and stumbled upon the following error message. IMO a delete operation should never block a build, because of not existing file. What's the point here? Deleting a non existing file does not exist, which was the intention of the delete operation. > 15:44:11 Cleaning up previously generate .ipa files > 15:44:11 FATAL: /Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos does not exist. > 15:44:11 /Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos does not exist. > 15:44:11 at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:474) > 15:44:11 at hudson.FilePath.glob(FilePath.java:1240) > 15:44:11 at hudson.FilePath.access$600(FilePath.java:164) > 15:44:11 at hudson.FilePath$23.invoke(FilePath.java:1219) > 15:44:11 at hudson.FilePath$23.invoke(FilePath.java:1217) > 15:44:12 at hudson.FilePath.act(FilePath.java:758) > 15:44:12 at hudson.FilePath.act(FilePath.java:740) > 15:44:12 at hudson.FilePath.list(FilePath.java:1217) > 15:44:12 at hudson.FilePath.list(FilePath.java:1203) > 15:44:12 at au.com.rayh.XCodeBuilder.perform(XCodeBuilder.java:356) > 15:44:12 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) > 15:44:12 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:693) > 15:44:12 at hudson.model.Build$RunnerImpl.build(Build.java:178) > 15:44:12 at hudson.model.Build$RunnerImpl.doRun(Build.java:139) > 15:44:12 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:459) > 15:44:12 at hudson.model.Run.run(Run.java:1376) > 15:44:12 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) > 15:44:12 at hudson.model.ResourceController.execute(ResourceController.java:88) > 15:44:12 at hudson.model.Executor.run(Executor.java:230) > By the way, the IPA creation looks a bit messy to me. xcodebuild's CONFIGURATION_BUILD_DIR states the following for my project: > setenv CONFIGURATION_BUILD_DIR /Users/Shared/Jenkins/Home/jobs/myProject/workspace/DerivedData/myProject/Build/Products/Release_Hockey-iphoneos > but xcrun tries to find the *.app file in /Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos (yeah, I didn't configure a special build output directory, it's empty, so the default value is $xcode_proj_dir/build ?!?). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
In reply to this post by JIRA noreply@jenkins-ci.org
[ https://issues.jenkins-ci.org/browse/JENKINS-12237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] aheritier resolved JENKINS-12237. --------------------------------- Assignee: aheritier Resolution: Fixed Fixed in 1.3 > Failed deleting previous generated IPA results in a failed build > ---------------------------------------------------------------- > > Key: JENKINS-12237 > URL: https://issues.jenkins-ci.org/browse/JENKINS-12237 > Project: Jenkins > Issue Type: Bug > Components: xcode > Affects Versions: current > Environment: OS X 10.7, Xcode 4.2 > Reporter: Jens Kohl > Assignee: aheritier > Priority: Blocker > Labels: plugin, xcode > Attachments: xcode-plugin.hpi, xcode-plugin.jar > > > Here's from my build log after xcodebuild successfully build a workspace. > Because the plugin has some trouble after I migrated from a custom build early version of your plugin (before it was in the official repo), I deleted the build directory manually. After that I rerun the build process and stumbled upon the following error message. IMO a delete operation should never block a build, because of not existing file. What's the point here? Deleting a non existing file does not exist, which was the intention of the delete operation. > 15:44:11 Cleaning up previously generate .ipa files > 15:44:11 FATAL: /Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos does not exist. > 15:44:11 /Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos does not exist. > 15:44:11 at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:474) > 15:44:11 at hudson.FilePath.glob(FilePath.java:1240) > 15:44:11 at hudson.FilePath.access$600(FilePath.java:164) > 15:44:11 at hudson.FilePath$23.invoke(FilePath.java:1219) > 15:44:11 at hudson.FilePath$23.invoke(FilePath.java:1217) > 15:44:12 at hudson.FilePath.act(FilePath.java:758) > 15:44:12 at hudson.FilePath.act(FilePath.java:740) > 15:44:12 at hudson.FilePath.list(FilePath.java:1217) > 15:44:12 at hudson.FilePath.list(FilePath.java:1203) > 15:44:12 at au.com.rayh.XCodeBuilder.perform(XCodeBuilder.java:356) > 15:44:12 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) > 15:44:12 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:693) > 15:44:12 at hudson.model.Build$RunnerImpl.build(Build.java:178) > 15:44:12 at hudson.model.Build$RunnerImpl.doRun(Build.java:139) > 15:44:12 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:459) > 15:44:12 at hudson.model.Run.run(Run.java:1376) > 15:44:12 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) > 15:44:12 at hudson.model.ResourceController.execute(ResourceController.java:88) > 15:44:12 at hudson.model.Executor.run(Executor.java:230) > By the way, the IPA creation looks a bit messy to me. xcodebuild's CONFIGURATION_BUILD_DIR states the following for my project: > setenv CONFIGURATION_BUILD_DIR /Users/Shared/Jenkins/Home/jobs/myProject/workspace/DerivedData/myProject/Build/Products/Release_Hockey-iphoneos > but xcrun tries to find the *.app file in /Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos (yeah, I didn't configure a special build output directory, it's empty, so the default value is $xcode_proj_dir/build ?!?). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
In reply to this post by JIRA noreply@jenkins-ci.org
[ https://issues.jenkins-ci.org/browse/JENKINS-12237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Arnaud Héritier closed JENKINS-12237. ------------------------------------- > Failed deleting previous generated IPA results in a failed build > ---------------------------------------------------------------- > > Key: JENKINS-12237 > URL: https://issues.jenkins-ci.org/browse/JENKINS-12237 > Project: Jenkins > Issue Type: Bug > Components: xcode > Affects Versions: current > Environment: OS X 10.7, Xcode 4.2 > Reporter: Jens Kohl > Assignee: Arnaud Héritier > Priority: Blocker > Labels: plugin, xcode > Attachments: xcode-plugin.hpi, xcode-plugin.jar > > > Here's from my build log after xcodebuild successfully build a workspace. > Because the plugin has some trouble after I migrated from a custom build early version of your plugin (before it was in the official repo), I deleted the build directory manually. After that I rerun the build process and stumbled upon the following error message. IMO a delete operation should never block a build, because of not existing file. What's the point here? Deleting a non existing file does not exist, which was the intention of the delete operation. > 15:44:11 Cleaning up previously generate .ipa files > 15:44:11 FATAL: /Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos does not exist. > 15:44:11 /Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos does not exist. > 15:44:11 at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:474) > 15:44:11 at hudson.FilePath.glob(FilePath.java:1240) > 15:44:11 at hudson.FilePath.access$600(FilePath.java:164) > 15:44:11 at hudson.FilePath$23.invoke(FilePath.java:1219) > 15:44:11 at hudson.FilePath$23.invoke(FilePath.java:1217) > 15:44:12 at hudson.FilePath.act(FilePath.java:758) > 15:44:12 at hudson.FilePath.act(FilePath.java:740) > 15:44:12 at hudson.FilePath.list(FilePath.java:1217) > 15:44:12 at hudson.FilePath.list(FilePath.java:1203) > 15:44:12 at au.com.rayh.XCodeBuilder.perform(XCodeBuilder.java:356) > 15:44:12 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) > 15:44:12 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:693) > 15:44:12 at hudson.model.Build$RunnerImpl.build(Build.java:178) > 15:44:12 at hudson.model.Build$RunnerImpl.doRun(Build.java:139) > 15:44:12 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:459) > 15:44:12 at hudson.model.Run.run(Run.java:1376) > 15:44:12 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) > 15:44:12 at hudson.model.ResourceController.execute(ResourceController.java:88) > 15:44:12 at hudson.model.Executor.run(Executor.java:230) > By the way, the IPA creation looks a bit messy to me. xcodebuild's CONFIGURATION_BUILD_DIR states the following for my project: > setenv CONFIGURATION_BUILD_DIR /Users/Shared/Jenkins/Home/jobs/myProject/workspace/DerivedData/myProject/Build/Products/Release_Hockey-iphoneos > but xcrun tries to find the *.app file in /Users/Shared/Jenkins/Home/jobs/myProject/workspace/myProject/build/Release_Hockey-iphoneos (yeah, I didn't configure a special build output directory, it's empty, so the default value is $xcode_proj_dir/build ?!?). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
| Powered by Nabble | See how NAML generates this page |
