jenkinsci / iOS-AdHoc-Deployment-Plugin

This plugin helps to add Over The Air Ad-hoc deployment for your iOS builds.
9 stars 4 forks source link

Blank config #5

Open zerglyn opened 9 years ago

zerglyn commented 9 years ago

Hi! I filled in all the required fields. But after I "Save" and reopen the configuration I got all fields empty. And of course the plugin does not work.

P.S. I tried to install several times, but the result is the same. What am I doing wrong? :)

P.P.S. Mac OS X 10.10, Jenkins ver. 1.590, jruby 1.7.16.1 (1.9.3p392) 2014-10-28 4e93f31 on Java HotSpot(TM) 64-Bit Server VM 1.8.0_25-b17 +jit [darwin-x86_64]

jeslyvarghese commented 9 years ago

@zerglyn Sorry for the trouble. I just checked the plugin on my local system and it seems to be working fine, though my test environment is outdated. Jenkins 1.514, jruby-1.7.4. Probably the upgrades are bringing the issue up. :disappointed:

Do you see any errors in the logs while running the project, if so please post it here.

The problem is that I don't use this plugin anymore, since my work revolves around a single app for the past one year and having a build server didn't seem apt for it. Though I am happy to extend support for whoever who use this plugin.

But am not sure how people go about using this plugin, normally an issue get raised and once I fix it I never receive a feedback from the OP if the plugin is working or not. This is very important since I don't run a Jenkins test server to verify the issues against.

So let me know if you want support for this plugin, and how fast you want it - since weekends are the only time I can allocate for this.

zerglyn commented 9 years ago

@jeslyvarghese Thank you for such a quick and detailed response)

I was hoping that I would find something in log. But there is nothing about OTA, ftp-publishing etc... Looks as if there were no post-build actions :( Only "Nice! I generated *.dsym and *.ipa! Results at /tru/la/la. Finished: SUCCESS"

I'll try check my environment again. But I still need your support if you have a time, it wouldn't be polite if I hurry you, IMHO:)

Best regards from Belarus :)

P.S. And sorry for my english))

UP I tried... Now jpi build says me

serv:iOS-AdHoc-Deployment-Plugin jenkins$ jpi build
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require': cannot load such file -- java (LoadError)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/jpi-0.4.0/lib/jenkins/plugin/tools/bundle.rb:12:in `install'
    from /Library/Ruby/Gems/2.0.0/gems/jpi-0.4.0/lib/jenkins/plugin/tools/package.rb:23:in `build'
    from /Library/Ruby/Gems/2.0.0/gems/jpi-0.4.0/lib/jenkins/plugin/cli.rb:35:in `build'
    from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
    from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
    from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
    from /Library/Ruby/Gems/2.0.0/gems/jpi-0.4.0/bin/jpi:6:in `<top (required)>'
    from /usr/bin/jpi:23:in `load'
    from /usr/bin/jpi:23:in `<main>'

And folder pkg is empty. Looks like I've done something wrong...

jeslyvarghese commented 9 years ago

@zerglyn looks like you are trying to build the plugin and use it ? If you just want to use the plugin, install it from Mange Plugins inside Jenkins Web UI - confused if you have done that already :confused: .

And about the error jpi build is raising. Can you post me the output of which ruby ?

NVM, even am not from an english speaking country, mine is pretty bad as well :smile:

zerglyn commented 9 years ago

@jeslyvarghese yes, I tried to install from Jenkins UI (first), to install from clone&build (second) - same result: it doesn't work...

serv:iOS-AdHoc-Deployment-Plugin jenkins$ which java
/usr/bin/java
serv:iOS-AdHoc-Deployment-Plugin jenkins$ which ruby
/usr/bin/ruby
serv:iOS-AdHoc-Deployment-Plugin jenkins$ which jruby
/opt/jruby/bin/jruby

UP Tried to uninstall & install from WebUI->pluginManager->available again - OTA-builder's config unsaveable.

zerglyn commented 9 years ago

@jeslyvarghese + some else questions...

  1. Can I use variables like ${BUILD_ID} in the OTA Builder Plugin config?
  2. What means HTTP Translation Link? Some "full" path or web-folder maybe...)
  3. Does plugin create subfolders in FTP?

Maybe I try to set & save wrong config?

UP After clicking "Save" Job-Configuration-History-Plugin says that nothing was changed...

<?xml version='1.0' encoding='UTF-8'?>
<project>
  <actions/>
  <description></description>
  <keepDependencies>false</keepDependencies>
  <properties/>
  <scm class="hudson.plugins.git.GitSCM" plugin="git@2.3">
………………………
  </scm>
  <canRoam>true</canRoam>
  <disabled>false</disabled>
  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
  <triggers/>
  <concurrentBuild>false</concurrentBuild>
  <builders>
………………………
  </builders>
  <publishers>
    <ruby-proxy-object>
      <ruby-object ruby-class="Jenkins::Tasks::PublisherProxy" pluginid="otabuilder">
        <object ruby-class="OtabuilderWrapper" pluginid="otabuilder"/>
        <pluginid pluginid="otabuilder" ruby-class="String">otabuilder</pluginid>
      </ruby-object>
    </ruby-proxy-object>
  </publishers>
  <buildWrappers/>
</project>
jeslyvarghese commented 9 years ago

@zerglyn: thank you :smile: Looks like the build process is failing because you are using ruby instead of jruby to jpi build. I suggest you use RVM based ruby management. And switch to jruby-1.7.4 after you have installed it in the rvm and have the bundle install executed.

About the plugin not working from Jenkins Plugin UI- please give me sometime, I will look at it and have fixed. I will try my best to respond about it by tomorrow.

On a quick check through the code - I found something pretty naive from my part

https://github.com/jenkinsci/iOS-AdHoc-Deployment-Plugin/blob/master/models/otabuilder_wrapper.rb#L86-#L94

should have come after

https://github.com/jenkinsci/iOS-AdHoc-Deployment-Plugin/blob/master/models/otabuilder_wrapper.rb#L109

I have fixed this in f2a07a1db7e455b77339ccba082d1a18b3b56367

jeslyvarghese commented 9 years ago

@zerglyn: Answering your questions, You can use these build variables in the email body, which you want to automatically sent to recipients once the ipa is uploaded to an ftp server.

HTTP translation link, is the http link from which you can download and install the IPA from. Say you are uploading your build to an ftp path www/builds/App.ipa, you can access it through mobile browser only via an http link http://mysite.com/builds/manifest_file.

zerglyn commented 9 years ago

Спасибо, пойду пробовать. Sorry))) Thanks, I'll go try.