Comments (14)
@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.
@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.
@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.
@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.
@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.
@KrauseFx commented |
- I'm running Jenkins as the same user as the default account
- 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.
@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.
@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.
@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 iPhoneOn 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.
@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.
@KrauseFx commented |
What are you trying to achieve? That's no valid syntax.
I don't understand your code
from fastlane.
@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.
@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.
@woutergoossens commented |
Thanks for the fast reply! That's working!
from fastlane.
Related Issues (20)
- Fastlane is not reading macros from Package.Swift (SPM)
- fastlane sigh download_all and "Error parsing provisioning profile at path..."
- fastlane match HOT 4
- bundler: command not found: fastlane
- Individual API Key not supported HOT 3
- fastlane deliver init is not working in CLI
- JEG2/highline should be updated to avoid warning of abbrev missing in standard lib for ruby 3.3.0
- How to get raw exit code from Fastlane HOT 3
- Match import to s3 Crash on encrypting. HOT 2
- Provisioning profile expiration comparison compares Time and DateTime
- AvailableTerritories is deprecated and fastlane is not upgraded to new api endpoints HOT 5
- Match managing provisioning profiles for DriverKit HOT 1
- curb-1.0.0/lib/curl/easy.rb - Failed to read/open file HOT 1
- `match` behaves differently in v2.220.0: `wrong final block length` HOT 14
- Can't upload build to Test Flight; [!] undefined method `refresh!' HOT 2
- A parameter has an invalid value - 'prices' is not a valid relationship name HOT 12
- I run the command 'fastlane match development'. and i got the following error: Looking for related GitHub issues on fastlane/fastlane... Found no similar issues. To create a new issue, please visit: https://github.com/fastlane/fastlane/issues/new Run fastlane env to append the fastlane environment to your issue [!] The request could not be completed because: This request is forbidden for security reasons - You currently don't have access to this membership resource. Contact your team's Account Holder, or an Admin.
- Build_for_testing fails sporadically with error 'Could not find or use auto-linked framework' HOT 2
- Can fastlane support filling in China’s ICP registration number?
- [match] provisioning profile generated via match blocks release installation on TestFlight (or on device) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastlane.