Comments (14)
What are the cases where you wouldn't want the build number committed to the repo?
from fastlane.
I always want this commited, but what happens if the Jenkins job is run for each commit? Also, we can't just commit all changed files, since some setups may modify the project before building the app.
What do you suggest?
from fastlane.
You could keep the version number in some sort of lock file that specifies the commit it was built for. Then when you re commit you only need to commit that lock file. Also fast lane could compare the commit and only build and increment if it was more than the lock file changed?
from fastlane.
This is implemented with the latest release
from fastlane.
Awesome. Is there a doc somewhere that describes how to use it with a Jenkins setup? Maybe I'm missing something
from fastlane.
@bassrock do you mean something like https://github.com/KrauseFx/fastlane/blob/master/Jenkins.md?
Or how to setup version commits and the other things?
from fastlane.
@KrauseFx yea I already have it setup like that. I mean jenkins setup with the version commit bumps, without running another build for a version bump.
from fastlane.
Honestly, I haven't used it myself, but @lmirosevic did probably.
I want to provide a more complex example setup of fastlane
, not sure when I get the time to do so.
from fastlane.
I've used PListBuddy in the past to drag a build number out of Jenkins. https://medium.com/salesforce-ux/infograin-plistbuddy-is-your-buddy-b969edb642ef has a sample run script that you could add to your Jenkins specific target?
from fastlane.
@seanoshea It's not a good idea to use the Jenkins build number, as the number might get reset when you migrate to a new build machine.
from fastlane.
@KrauseFx I believe Jenkins has the ability of re-setting the initial build number which would help if you moved to a new build machine. Not exactly ideal, but would be one way around it.
from fastlane.
This may be an answer we are looking for: https://github.com/jenkinsci/ci-skip-plugin
Just need to enable this and then make the commit message for a version bump include: "[ci skip]"
from fastlane.
That's a pretty neat idea π
from fastlane.
Unfortunately, if your CI job is listening for pushes to a branch, the Jenkins ci-skip-plugin runs after the fact and still requires Jenkins to kick off a build to determine if it should ignore the commit. The job then cancels, leaving the status unknown until a "real" commit comes through.
Instead of the ci-skip-plugin, we configured our Jenkins job's Source Code Management->Additional Behaviors to add the "Polling ignores commits from certain users" behavior. We added the CI "jenkins" user to that list, so any commits coming from the CI server (assuming we're only bumping the version number) will be ignored.
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 1
- 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 2
- Match managing provisioning profiles for DriverKit
- curb-1.0.0/lib/curl/easy.rb - Failed to read/open file
- `match` behaves differently in v2.220.0: `wrong final block length` HOT 10
- Can't upload build to Test Flight; [!] undefined method `refresh!' HOT 1
- A parameter has an invalid value - 'prices' is not a valid relationship name HOT 6
- 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)
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.