Git Product home page Git Product logo

Comments (14)

fastlanebot avatar fastlanebot commented on May 5, 2024
@KrauseFx commented

Sorry for the late response.

It looks like gets doesn't work in the Deliverfile

I got a working solution now:

if ENV["project"] == 'project_name1'

  email "[email protected]"
  # hide_transporter_output # remove the '#' in the beginning of the line, to hide the output while uploading

  ########################################
  # App Metadata
  ########################################



  # The app identifier is required
  app_identifier "[Your App Identifier, e.g. at.felixkrause.app_name]"


  # This folder has to include one folder for each language
  # More information about automatic screenshot upload: 
  screenshots_path "./screenshots"


  # version '1.2' # you can pass this if you want to verify the version number with the ipa file
  # 
  # title({
  #   "en-US" => "Your App Name"
  # })
  # 
  # changelog({
  #   "en-US" => "iPhone 6 (Plus) Support" 
  # })



  ########################################
  # Building and Testing
  ########################################

  # Dynamic generation of the ipa file
  # I'm using Shenzhen by Mattt, but you can use any build tool you want
  # Remove the whole block if you do not want to upload an ipa file
  ipa do
      # system("ipa build") # build your project using Shenzhen
      "./[[APP_NAME]].ipa --scheme your name" # Tell 'Deliver' where it can find the finished ipa file
  end

  # ipa "./latest.ipa" # this can be used, if you prefer manually building the ipa file

  # unit_tests do
  #   system("xctool test")
  # end

  success do
    system("say 'Successfully deployed a new version.'")
  end

elsif ENV["project"] == 'project_name1'
  # copy code here
end

and run deliver using

project="project_name1" deliver

from fastlane.

fastlanebot avatar fastlanebot commented on May 5, 2024
@woutergoossens commented

Thanks! Working great.

Just having an issue to run deliver via jenkins.

�[0m�[0m#############################################################
�[1m�[31mFATAL [2014-11-14 17:53:51.66]: �[0m�[0m# You have to install phantomjs to use deliver
�[1m�[31mFATAL [2014-11-14 17:53:51.66]: �[0m�[0m# phantomjs is used to control the iTunesConnect frontend
error: Run 'brew update && brew install phantomjs' and start deliver again. Use --trace to view backtrace
�[1m�[31mFATAL [2014-11-14 17:53:51.66]: �[0m�[0m# Install Homebrew using http://brew.sh/
�[1m�[31mFATAL [2014-11-14 17:53:51.66]: �[0m�[0m# Run 'brew update && brew install phantomjs' and start deliver again
�[1m�[31mFATAL [2014-11-14 17:53:51.66]: �[0m�[0m#############################################################
Build step 'Execute shell' marked build as failure

When I login to jenkins via the Terminal application I see that phantomjs is installed.

Wouters-MacBook-Pro-2:~ jenkins$ which phantomjs
/usr/local/bin/phantomjs

What could be the problem?

Thanks

from fastlane.

fastlanebot avatar fastlanebot commented on May 5, 2024
@KrauseFx commented

Maybe your Jenkins process is running as a different user?
You could also add brew update && brew install phantomjs as build step in Jenkins.

from fastlane.

fastlanebot avatar fastlanebot commented on May 5, 2024
@woutergoossens commented

The jenkins process is running as the "Jenkins" user and I have brew installed (on my user and so on the Jenkins user).
When I just do brew update in Jenkins it is giving me this error

  • brew update
    /Users/Shared/Jenkins/tmp/hudson8634906488041944573.sh: line 2: brew: command not found

Very weird. Is brew not working with jenkins?

Maybe this user also has the same problem --> https://twitter.com/devasapps/status/533335162864803840 ?

from fastlane.

fastlanebot avatar fastlanebot commented on May 5, 2024
@woutergoossens commented

I just thing that jenkins cannot use brew.
Is jenkins working for you with deliver and phantomjs?

You found a solution to drop this and use Mechanize?

Would be great! Thanks :)

from fastlane.

fastlanebot avatar fastlanebot commented on May 5, 2024
@KrauseFx commented
  1. I'm running Jenkins as the same user as the default account
  2. it looks like migrating to mechanize would be a very complex change. It's probably not going to happen

Sent from my iPhone

On 15.11.2014, at 09:36, Wouter Goossens [email protected] wrote:

I just thing that jenkins cannot use brew.
Is jenkins working for you with deliver and phantomjs?

You found a solution to drop this and use Mechanize?

Would be great! Thanks :)


Reply to this email directly or view it on GitHub.

from fastlane.

fastlanebot avatar fastlanebot commented on May 5, 2024
@woutergoossens commented

Hi,

Oh, how can I setup jenkins as the same user? Sorry for all the questions, would be great if I can setup my jenkins installation with deliver! :)

Thanks.

Wouter

from fastlane.

fastlanebot avatar fastlanebot commented on May 5, 2024
@KrauseFx commented

I use Jenkins App: https://github.com/stisti/jenkins-app

Sent from my iPhone

On 15.11.2014, at 10:08, Wouter Goossens [email protected] wrote:

Hi,

Oh, how can I setup jenkins as the same user? Sorry for all the questions, would be great if I can setup my jenkins installation with deliver! :)

Thanks.

Wouter


Reply to this email directly or view it on GitHub.

from fastlane.

fastlanebot avatar fastlanebot commented on May 5, 2024
@woutergoossens commented

Nice! Thanks!! 


Sent from Mailbox

On Sat, Nov 15, 2014 at 11:16 AM, Felix Krause [email protected]
wrote:

I use Jenkins App: https://github.com/stisti/jenkins-app
Sent from my iPhone

On 15.11.2014, at 10:08, Wouter Goossens [email protected] wrote:

Hi,

Oh, how can I setup jenkins as the same user? Sorry for all the questions, would be great if I can setup my jenkins installation with deliver! :)

Thanks.

Wouter


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub:
fastlane-old/deliver#20 (comment)

from fastlane.

fastlanebot avatar fastlanebot commented on May 5, 2024
@woutergoossens commented

This doesn't work anymore with fastlane?

lane :beta do
project="test_project" deliver :beta
end

/Library/Ruby/Gems/2.0.0/gems/fastlane-0.1.5/lib/fastlane/fast_file.rb:20:in `eval': (eval):27: syntax error, unexpected tIDENTIFIER, expecting keyword_end (SyntaxError)
project="test_project" deliver :beta
^
(eval):34: syntax error, unexpected tIDENTIFIER, expecting keyword_end

from fastlane.

fastlanebot avatar fastlanebot commented on May 5, 2024
@KrauseFx commented

What are you trying to achieve? That's no valid syntax.

I don't understand your code

from fastlane.

fastlanebot avatar fastlanebot commented on May 5, 2024
@woutergoossens commented

When you check the previous comments in this discussion I have 1 Xcode workspace and multiple targets.

So I also have 1 Deliverfile and with environment variables I could builds separate targets.

So I tried to use the same syntax in the Fastfile as I did before.

project="project_name1" deliver

Isn't that possible anymore?

from fastlane.

fastlanebot avatar fastlanebot commented on May 5, 2024
@KrauseFx commented

Ohh, okay.
To pass environment variables you have to do it like this:

lane :beta do
  ENV["project"] = "something"
  deliver :beta
end

from fastlane.

fastlanebot avatar fastlanebot commented on May 5, 2024
@woutergoossens commented

Thanks for the fast reply! That's working!

from fastlane.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.