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)
- [scan] Tests show as passing if app crashes during test HOT 1
- Tests written in Swift Testing framework are not running
- output_types is set to HTML by default, but `xcbeautify` doesn't support it
- Problem with Fastlane Build Version Management for iOS HOT 1
- [Deliver] Improve documentation for macOS since the Quick Start results with error HOT 2
- Fastlane snapshot doesn't work on iOS HOT 4
- Issue with get_push_certificate Command on Ruby 3.2 and 3.3 HOT 1
- Error on Device.disable request due to missing teamId in attributes data
- Deliver cannot upload a build with Individual API Key
- get_build_number(xcodeproj: options[:xcodeproject]) returns wrong number HOT 1
- Fastlane ios build fails, but xCode Product Archive succeeds HOT 1
- Assigning groups to app but only last one shows up HOT 2
- [spaceship] update_availability using Deprecated API HOT 1
- Bug: Handling of Version Numbers Ending in .0.0 in Fastlane
- [GYM] Fastlane doesn't generate the correct plist export file when a certain amount of bundleIds are provided
- Xcode 16 beta 3 tests fail as xcresulttool get object is deprecated HOT 5
- CircleCI PR check uses unsupported Ruby version HOT 1
- use rosetta simulator in the lane - fastlane snapshot HOT 1
- Ruby 3.3.4 falls back to "App" `output_name`, 3.3.3 works fine HOT 1
- xcodebuild fails during fastlane, but same command works outside of fastlane.
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.