Comments (8)
Thanks for the feedback! I'd like to understand a bit more about the scenario you're trying to execute. Where would you expect to see the version number set? Is this something you would set in the build definition? Or are you looking to automatically increase the version number for each build?
from vsts-cordova-tasks.
So currently we have an ember app which we build in the build step and then test. Then in the release step we're looking at building the cordova app for ios, android, windows and web deploy to web. We'll be automatically triggering the release of the staging app after each checkin, and manually trigger the release of the production app.
I was thinking it can just be a textbox in the cordova build properties. For our staging app we're interested in an increasing version number but don't care about the format so would probably just use the build number $(Build.BuildNumber)
or release number $(rev:r)
into the version textbox (or maybe something like $(productionVersion).$(Build.BuildNumber)
), and for the release build we'd probably change it manually for each release using a custom variable $(productionVersion)
.
from vsts-cordova-tasks.
Thanks - Appreciate the feedback. This is absolutely something that we have indeed been thinking about. Generally we find environment specific config is a problem for Cordova. There are actually similar issues with services like CodePush where you want difference preference values depending on whether you're building a staging or production version of the app. We will add this to our backlog to think about a good solution.
@lostintangent FYI
from vsts-cordova-tasks.
hey @mcm-ham is it possible that you write a bit more in a gist about how you manage multiple environments (staging/production) with your cordova app? I'm particularly interested to know how you distribute that staging app to the app testers.
I don't use VSTS but I probably have the same usecase and I need to override config.xml values per env (including app id, CodePush/Intercom/Apns/Gcm keys...)
from vsts-cordova-tasks.
@slorber You may find this blog post on the topic useful: http://www.ryanjsalva.com/2016/05/07/maintaining-different-release-configurations.html
from vsts-cordova-tasks.
thanks @Chuxel
Actually I was more interested on how to distribute a staging / production binary to the stores rather than how to setup gulp/git/CI :)
I'm not using VSTS but I just installed CodePush and it works very fine. I splitted my userbase to Staging=team members / Production=all others, and we can now deploy for my team first and then for all users. This is a great progress for beta-testing against a production backend, but what I really wanted to know is how I am supposed to manage 2 apps where one run against a production backend and the other against a staging backend :)
from vsts-cordova-tasks.
As there hasn't been any movement on this for nearly a Year, I'll go ahead and close it. Please let me know if you have any concerns with this.
from vsts-cordova-tasks.
+1 for the feature request
from vsts-cordova-tasks.
Related Issues (20)
- VSTS CI with IONIC 2 integration is failing - Both Add platform and Build Android tasks HOT 1
- No agent could be found for xcode, npm HOT 3
- Cordova Build task fails, unable to find Gradle HOT 7
- Ionic command using its own version of npm HOT 2
- Ionic Cordova iOS Build Failed - Scheme not found HOT 1
- Mac agent - issue with xcode-task-utils.js:45:31 HOT 4
- Cordova build error in vsts HOT 1
- Cordova Build Task cannot copy Android artifacts in [email protected] HOT 2
- Cordova task is failing to complete the build HOT 25
- Cordova Build Agent Error - "CordovaError: Current working directory is not a Cordova-based project." HOT 5
- Install Apple Provisioning Profile: security: SecPolicySetValue: One or more parameters passed to a function were not valid. HOT 1
- Ionic Command cordova build android runs forever HOT 8
- Error when specifying archs for ionic cordova build windows HOT 3
- Fails to install node 0.12.7 HOT 1
- Cordova not looking in the correct folder from which to copy APK from HOT 2
- ionic cordova build ios - Issue with xcode - Cannot read property 'toLowerCase' of undefined HOT 1
- Is this Repo Deprecated? HOT 2
- Create ipa using Distribution Provisioning Profile HOT 2
- Unable to determine Identity with npm 10.x HOT 6
- Azure Devops Pipeline Task Cordova Build : Execution failed for task ':app:mergeDebugResources' (GC overhead limit exceeded)
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 vsts-cordova-tasks.