简体   繁体   English

在Jenkins中的Xcode插件中设置Marketing版本

[英]Set Marketing version in Xcode Plugin in Jenkins

I have installed XCode plugin on Jenkins and figured out how to do the versioning. 我已经在Jenkins上安装了XCode插件,并弄清楚了如何进行版本控制。

But my requirement is different. 但是我的要求是不同的。 I have set marketing version as 00.001.${BUILD_NUMBER} . 我已将营销版本设置为00.001。$ {BUILD_NUMBER}。 Let say its the 3rd build. 假设它是第三个版本。 It shows as 00.001.3 but what i need is 00.001.003. 它显示为00.001.3,但我需要的是00.001.003。 How can do this? 怎么办

Similarly for Build Number 75 : it should be 00.001.075 And for build number 300 : it should be 00.001.300 同样,对于内部版本号75:应为00.001.075,对于内部版本号300:应为00.001.300

To be more clear, what I want to know is how we can add leading zeros to the {BUILD_NUMBER} in Jenkins when setting the Marketing version. 更清楚地说,我想知道的是在设置Marketing版本时如何在Jenkins中的{BUILD_NUMBER}中添加前导零。

Please answer if there is any solution available 请回答是否有任何解决方案

Apple use to count build version as a number like for build version 00.001.3 . Apple用于将构建版本计数为一个数字,例如构建版本00.001.3。 It take it as 000013 build version number. 将其作为000013内部版本号。 And for next build version the number must be greater than previous version. 对于下一个构建版本,该数字必须大于上一个版本。 As you want to enter 00.001.003 ie 00001003 which is smaller than previous version ie 000013. So you cannot enter this build version. 由于要输入00.001.003,即00001003,比以前的版本(即000013)要小。因此,您不能输入此构建版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM