SICSoftwareGmbH / sicci_for_xcode

SICCI for Xcode: a Jenkins plugin to build, test... your iOS and OS X projects
http://wiki.jenkins-ci.org/display/JENKINS/SICCI+for+Xcode+Plugin
GNU General Public License v3.0
24 stars 8 forks source link

Project directory option always filled with "rkspace" #9

Closed coconitro closed 13 years ago

coconitro commented 13 years ago

The directory "rkspace" is appended to the end of which ever project directory I choose for a project. I have tried with multiple Xcode projects.

Editing config.xml for the job and removing the "rkspace" does not fix the issue either, this error is still in the logs:

FATAL: SICCI for Xcode: project dir not found: /var/jenkins/jobs/DriveCore/workspace/rkspace
coconitro commented 13 years ago

Some additional input on from an example project

user@servername workspace $ pwd
/var/hudson/jobs/DriveCore/workspace
user@servername workspace $ ls -al
total 128
drwxr-xr-x   15 hudson  wheel    510 Apr 13 14:59 .
drwxr-xr-x   11 root    wheel    374 Apr 13 14:58 ..
drwxr-xr-x    8 hudson  wheel    272 Apr 13 14:50 .svn
drwxr-xr-x    4 hudson  wheel    136 Apr 13 14:50 Assets
drwxr-xr-x  305 hudson  wheel  10370 Apr 13 14:50 Classes
-rw-r--r--    1 hudson  wheel  56602 Mar 10 14:53 Default.png
drwxr-xr-x    5 hudson  wheel    170 Apr 13 14:50 DriveCore.xcodeproj
drwxr-xr-x    4 hudson  wheel    136 Apr 13 14:50 DriveCoreFramework
-rw-r--r--    1 hudson  wheel   1763 Mar 10 14:53 DriveCore_Prefix.pch
drwxr-xr-x    4 hudson  wheel    136 Apr 13 14:50 Extlib
drwxr-xr-x    3 hudson  wheel    102 Apr 13 14:50 Frameworks
-rw-r--r--    1 hudson  wheel    667 Mar 10 14:53 Info.plist
drwxr-xr-x    4 hudson  wheel    136 Apr 13 14:50 Xibs
drwxr-xr-x@   4 hudson  wheel    136 Apr 13 14:50 build
drwxr-xr-x    2 hudson  wheel     68 Apr 13 14:50 output

Relevant Config.xml parts

<com.sic.bb.jenkins.plugins.sicci__for__xcode.XcodeBuilder>
  <data>
    <entry>
      <string>ProjectDir</string>
      <string>/testdirname</string>
    </entry>
    <entry>
      <string>XcodePlatform</string>
      <string>iOS</string>
    </entry>
    <entry>
      <string>stapler-class</string>
      <string>com.sic.bb.jenkins.plugins.sicci_for_xcode.XcodeBuilder</string>
    </entry>
    <entry>
      <string>ProjectDirs</string>
      <string>/testdirname</string>
    </entry>
bbiallowons commented 13 years ago

If you configure your job, could you tell me what the plugin tells you as your project dir?

bbiallowons commented 13 years ago

ok, too slow sorry ;-)

as you can see above, the plugin found a directory /testdir, that's a bit strange i'll check it

coconitro commented 13 years ago

Here is what I just did:

The drop down for "Project directory" has one option "rkspace/"

coconitro commented 13 years ago

I put the "testdir" manually into Config.xml

Thanks for looking into this, really pumped about being able to get rid of my series of build scripts for our Xcode projects.

bbiallowons commented 13 years ago

FATAL: SICCI for Xcode: project dir not found: /var/jenkins/jobs/DriveCore/workspace/rkspace vs. /var/hudson/jobs/DriveCore/workspace

Did you upgrade from hudson, changing folder names?

coconitro commented 13 years ago

I have. /var/jenkins is a symlink pointing to /var/hudson.

bbiallowons commented 13 years ago

Possibly that could be the problem. Java 6 and Symlinks aren't best friends...

Could you try that without a Symlink ?

If that's the problem, i'll fix that as soon as possible.

coconitro commented 13 years ago

Deleted the symlink, repeated the same process as outlined before. Here is the dir listing (same as before)

user@servername workspace $ pwd
/var/hudson/jobs/DriveCore/workspace
user@servername workspace $ ls -al
total 128
drwxr-xr-x   15 hudson  wheel    510 Apr 13 15:20 .
drwxr-xr-x   11 root    wheel    374 Apr 13 15:00 ..
drwxr-xr-x    8 hudson  wheel    272 Apr 13 15:19 .svn
drwxr-xr-x    4 hudson  wheel    136 Apr 13 15:19 Assets
drwxr-xr-x  305 hudson  wheel  10370 Apr 13 15:19 Classes
-rw-r--r--    1 hudson  wheel  56602 Mar 10 14:53 Default.png
drwxr-xr-x    5 hudson  wheel    170 Apr 13 15:19 DriveCore.xcodeproj
drwxr-xr-x    4 hudson  wheel    136 Apr 13 15:19 DriveCoreFramework
-rw-r--r--    1 hudson  wheel   1763 Mar 10 14:53 DriveCore_Prefix.pch
drwxr-xr-x    4 hudson  wheel    136 Apr 13 15:19 Extlib
drwxr-xr-x    3 hudson  wheel    102 Apr 13 15:19 Frameworks
-rw-r--r--    1 hudson  wheel    667 Mar 10 14:53 Info.plist
drwxr-xr-x    4 hudson  wheel    136 Apr 13 15:19 Xibs
drwxr-xr-x@   4 hudson  wheel    136 Apr 13 15:19 build
drwxr-xr-x    2 hudson  wheel     68 Apr 13 15:19 output

And config.xml relevant parts

<builders>
<com.sic.bb.jenkins.plugins.sicci__for__xcode.XcodeBuilder>
  <data>
    <entry>
      <string>ProjectDir</string>
      <string>rkspace/</string>
    </entry>
    <entry>
      <string>XcodePlatform</string>
      <string>iOS</string>
    </entry>
    <entry>
      <string>stapler-class</string>
      <string>com.sic.bb.jenkins.plugins.sicci_for_xcode.XcodeBuilder</string>
    </entry>
    <entry>
      <string>ProjectDirs</string>
      <string>rkspace/</string>

And output from attempting a build

FATAL: SICCI for Xcode: project dir not found: /var/hudson/jobs/DriveCore/workspace/rkspace

It is odd, since there is no dir on this system of "rkspace" I have no idea where that could be coming from unless somehow "workspace" is being truncated? As in workspace

bbiallowons commented 13 years ago

I think i found the problem, i'll fix it as soon as possible.

Could you try the following steps:

remove "rkspace" from ProjectDir AND from ProjectDirs in your config.xml. You've to restart Jenkins afterwards, to let these changes take effekt. This should let you build your project for exactly one time, if there're no other errors.

Ps.: I'm currenty working on a new major release, which introduces a lot of changes to the base (which also removes this bug). I'd like to release it in a few weeks, so i'm currently really busy, please be forgiving with me if it takes a day or two for this fix (and test).

coconitro commented 13 years ago

I removed "rkspace" from ProjectDir and ProjectDirs and restarted Jenkins. Here is the output:

Started by user anonymous
Reverting /var/hudson/jobs/DriveCore/workspace/.
Updating svn+ssh://cice2/var/svn/DriveCore/Trunk
At revision 18
no revision recorded for svn+ssh://cice2/var/svn/DriveCore/Trunk in the previous build

SICCI for Xcode: build environment check started

SICCI for Xcode: build environment check finished

SICCI for Xcode: started

SICCI for Xcode: clean started

SICCI for Xcode: clean finished

[workspace] $ /usr/bin/security unlock-keychain -p ****** /Users/hudson/Library/Keychains/login.keychain

SICCI for Xcode: builds started

SICCI for Xcode: builds finished

SICCI for Xcode: archiving Apps started

SICCI for Xcode: archiving Apps finished

SICCI for Xcode: creating IPAs started

SICCI for Xcode: creating IPAs finished

SICCI for Xcode: finished

Looks like things worked.

Awesome reply times btw. If it takes a bit to get a fix, or a few weeks for the next version that is fine. So far looks like a great plugin. If you need any help let me know, I'd be of no help in the Java arena, but testing (I use Jenkins for many iOS and Mac jobs) or anything along those lines.

bbiallowons commented 13 years ago

I've a short workaround for you (until i release the fix):

You're setting JENKINS_HOME to /var/hudson, but /var is only a symlink to /private/var. Try setting JENKINS_HOME to /private/var/hudson and you should be able to build your projects.

coconitro commented 13 years ago

Awesome. That seems to do the trick.

bbiallowons commented 13 years ago

this is also fixed in 0.0.9, so you're able to use symlinks in JENKINS_HOME.

coconitro commented 13 years ago

0.0.9 fixes this issue thanks!

jhansche commented 13 years ago

bbiallowons: Where can 0.0.9 be found? It doesn't seem like 0.0.9 has been released via the maven release plugin, so it doesn't exist in the plugins tracker, isn't updated on the wiki, etc.

bbiallowons commented 13 years ago

hi, you're right it's not released yet, but you'll find the pre-release version here -> Downloads

jhansche commented 13 years ago

That's just it... Where is "Downloads"?

jhansche commented 13 years ago

Ahh, I see it now, on the Source tab. My mistake. Thanks.