Programmatically Changing Build Version

We are wanting to automate our build process and we have a particular problem. We have been looking into the Jenkins tool and quite possibly, LabVIEW 2011 may help us out when we upgrade, not sure though.  But before we look outside of LabVIEW for a solution, we want to run this dilemna by some of the LabVIEW users. We are using the Unit Test Framework and let's say we have some unit tests in our project. We wrote a wrapper VI that will do the following:
1) progammatically execute the unit tests using the Run Tests from File.vi.
2) unbundle the test status from the output cluster array and look for a "Passed" result
3) if the result is indeed "Passed" then this means that the overall results for the unit tests are OK and go ahead and call the Build Targets Programmatically.vi with the appropriate path, name of build and target. The name of the build is set in the properties of the build specification in the project.
This works fine. What we want is the ability to either auto-increment the version number (which the checkbox is selected in the build properties) or set a version for the build. Only when you press the Build button in the build specification properties does the version get incremented automatically, not via programmatically.

In versions before LabVIEW 2014, this was truly difficult, as the Version Number for a particular Build Spec is stored deep within the XML that is part of a Project (modify at your own risk).  There are also some inconsistencies in the XML Tags, in particular whether the third dotted number of the Build Spec is called "Fix" or "Patch".
LabVIEW 2014 introduced a Set Build Specification Version that allows you to set the Build Spec within the Project by supplying the name of the Target (usually "My Computer"), the name of the Build Spec, and the path to the Project file.  There is also in LabVIEW 2012 and higher (I don't know if this is present in LabVIEW 2011) a Build option called a Pre-Build Action, whereby you can specify a VI to run before the Build takes place.
In my LabVIEW implementation, my LabVIEW Projects live inside folders that are part of a SubVersion repository.  I wrote a utility that, given the path to the Project File, can return the SubVersion Build number.  Using the Pre-Build Action, I can call this Utility, get the SVN Build Number, and use Set Build Specification Version (or other LabVIEW code to diddle the Project XML file directly).
This, in fact, works, but there's a bug -- the file that results from this Build does not have the Build number specified by the Pre-Build Action.  It turns out that as part of the Build process, the Version is cached first, then the Pre-Build Action is applied (updating the Version, perhaps), then the Build takes place using the cached Version.  The "simple fix" is to Build twice -- the first time to save the SVN Version into the Build Version number, the second time to use this saved Version number in accomplishing the Build.
I've alerted NI to this conundrum.  I didn't get the sense that they are willing or eager to change this behavior.
Bob Schor

Similar Messages

  • Programmatically Changing Build Specifications from command line

    I use a batch file that calls a VI to build several LV projects.  I found the article http://zone.ni.com/devzone/cda/epd/p/id/5051 to get started and build projects; however, I was wondering if anyone has been able to change build specifications without opening the Application Builder dialog?  -> I would like to build an app. with a version number using the command syntax:  labview.exe <mybuild.vi> -- "project1.lvproj" "version number"
    Any thoughts regarding this problem?
    Thanks,
    Adam

    I have done some research and there doesn't seem to be a way to change the version number when building a project with this method.  If I find out otherwise I will post to let you know but I don't think it is possible.  I would look for another way to accomplish what you want by incorporating the version into the file name or something like that. 
    Eric A.
    National Instruments
    Distributed I/O Product Support Engineer

  • ERROR ITMS-9000:"Redundant Binary Upload. There already exists a binary upload with build version '1.1' for ipa '1.1'".

    ERROR ITMS-9000:"Redundant Binary Upload. There already exists a binary upload with build version '1.1' for ipa '1.1'".
    I need to change the build number, but not the version number. So I can upload a new build for same version to ITC. What step should I do in FB4.7?

    Hi mobisa,
    Can you try the solution in this post? ios - ERROR ITMS-9000: "Redundant Binary Upload. There already exists a binary upload with build version '1.0' for train…
    Thanks,
    Preran

  • How to programmatically change the width of a graph?

    How can I programmatically change the width of a Waveform Graph or Waveform Chart? When I create an implicit property node for a graph or chart, it is read-only. Changing the plot bounds worked in earlier versions of LabVIEW, but not anymore.
    Solved!
    Go to Solution.

    It works for me in LV2013 but I'm using the Plot Area : Size : Width property.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • Programmaticly change cluster size

    I'm i'm facing the following problem, i want to display several plots in a chart, to do this i'm using a build to cluster function, because the source is an array with N items. The sollution i came up to, was not correct because the cluster has a fixed size and the array doesn't. Which results in 9 plots (default cluster size) and only N of them have to be displayed in the chart.
    I included a part of my program. By which i hope it explains my problem a bit more. This subvi is executed X times and saves N value's to an array and after each run the array is converted into a cluster and is displayed in a chart.
    So my question is, is it possible to programmatically change the cluster size, or is it possible to realise a chart which is updated during runtime with new value's.
    Attachments:
    Wavelength AnalyseAndSave.vi ‏208 KB

    I figured it out by myself, havn't slept to mutch last night For those who are interested in my solution, here is what i did after the array is coming out from the forloop i reshaped it so that the dementions are the same as the number of plots i want to have, then i wired the output to a chart and it works

  • Flex/Flash Builder version compability

    Hi,
    I got a question about compability.
    My friend created a Flex Project using Flex Builder 3 and Flex SKD 3.6. Now I need to further develop that project possibly without changing much stuff inside it. The best way would be to buy Flex Builder 3 with Flex SDK 3.6. But now I see that Adobe changed names/versions and I'm quite confused about it.
    Can I still buy Flex Builder 3 somewhere? It'd be nice coz my friend can teach me how to use it, he didn't work na Flash Builder.
    If I change from Flex Builder 3 to Flash Builder 4.6 will there be much differences?
    What about SDK versions? Can I work with SDK 3.6 on Flash Builder 4.6?

    Flex comes into its own when doing MMXL, where you're using markup language to layout interface components. If you're doing a utility app, that could save you quite a bit of time. If you're doing something more like a game, or graphical scenes rather than entry forms, then Flex might not be of much use.
    On the general topic of using powerful editors, you can choose to do everything inside Flash Pro, but still use Flash Builder as the script editor, though right now I can't remember where to set that! If you do investigate Flash Develop, you can create a Flash IDE project, and then Flash Develop will get Flash Pro to do the compiling. It's talked about on this page:
    http://code.tutsplus.com/articles/beginners-guide-to-flashdevelop-basix--active-7168
    For me though, I like the way I can work just inside Flash Pro. I'm seeing the graphics and the code at the same time, and a lot of what I do involves a combination of how the two work together. I know that I'm missing out on some of the powerful editor features, but Flash Pro has improved over time, and I'm on the Flash Pro pre-release, and can continue to plead with the Flash team to improve it some more!

  • Build versions means 14.0.7015.1000 Installed and 14.0.7109.5000 Installed

    HI
    I update my sharepoint farm with December 2013 c.u(14.0.7113.5000) and previously I installed sharepoint 2010 service pack 2 (version :​14.0.7015.1000)
    what this  build versions mean here
     Microsoft SharePoint Server 2010 Installed
    SPFAPP01
    Microsoft Access Services English Language Pack
    14.0.7015.1000 Installed  
    Hotfix for Microsoft SharePoint Server 2010 (KB2849971) 64-Bit Edition
    14.0.7109.5000 Installed  
    Service Pack 2 for Microsoft SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000 Installed  
    Microsoft Access Services Server
    14.0.7015.1000 Installed
    adil

    SP 1 = 14.0.6029.100
    Services Pack 2= 14.0.7015.1000
    December CU = 14.0.7113.5000
    to understand completely about the CU Numbers, you should check the KB articles and more specifically file
    information and you will get the all the possible build number for each file. Some files dont change the build number and some does.
    you see the differnt version on central admin, On that page its shows all the updates till today applied to the form.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Security UPdate for sharepoint will change farm version?

    Security Update for SharePoint will change farm version or not?

    Not all security updates change the farm build #, but some do. It just depends on what is in the security update.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Linking the build version in an About dialog

    I have an application whereby I use the build version number auto increment functionality.  And thats cool, it makes sure I keep my build numbers changing everytime!
    But I also have an About dialog page where I have the version number also, so the client doesn't need to go to the exe, right click, version etc.
    Currently, before any build, I go and update a text box with the version number for the next build...but its a real pain and sometimes I forget (luckily its always something I check before release though).  
    Is there anyway I can link a textbox value to the version number automatically, so that I dont need to do anything manually?
    Solved!
    Go to Solution.

    Hello,
    2 different ways are discribed here. Note that the second option will need slight modification if you are using other than LV 2009.
    Hope this helps.
    http://lavag.org/topic/12845-querying-the-build-nu​mber-of-a-built-executable-from-another-built-exec​...
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • What is the build version for Sharepoint 2013 Server including trial version there is one?

    Hello Community
        When using WS2012 and Sharepoint 2013 Server, what
    build version for a Sharepoint 2013 Server farm should
    be applied and where do you get the cumulative update
    for it (trial version also if there is one)?
        Thank you
        Shabeaut

    Hi,
    According to your description, my understanding is that you want to know which SharePoint build version should be applied to Windows Server 2012 and where to get cumulative update.
    If you want to use SharePoint in Windows Server 2012, you can use the RTM version 15.0.4420.1017.
    For CU update and build version, I suggest you can refer the detailed article below:
    SharePoint 2013 Build Numbers
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How do I change the Version Code in the Flash Android settings Android app market?

    I recently tried to update my app in the Android app market and when I uploaded it I got the following message:
    "The new apk's versionCode (1000000) already exists."
    In the Flash Adnroid settings I changed the version label but that did not help.
    So I have two questions:
    How do I change the Version code in the Flash Android settings? I changed the version number and version label but that did not work.
    What is the difference between the version number and version label?

    I tried that but it did not work. Apparently there is a difference between the version code and version number (which is set in the Android settings). From my research the version label is optional, so there are no problems there.
    This is the what the XML file says:
    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <application xmlns="http://ns.adobe.com/air/application/2.6">
      <id>com.company.nameofapp</id>
    //Below is the correct version number, but has no relation to the version code.
      <versionNumber>1.1.0</versionNumber>
      <versionLabel>NewLayout</versionLabel>
      <filename>Name of app</filename>
      <description/>
    I did find this piece of information for Androin version codes. (http://developer.android.com/guide/publishing/versioning.html)  But I don't know how to place it into the xml file without conflicting with other code.
    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.example.package.name"
          android:versionCode="2"
          android:versionName="1.1">
        <application android:icon="@drawable/icon" android:label="@string/app_name">
        </application>
    </manifest>
    Any other thoughts are much appreciated.

  • How do I change the Version Code in the Flash Android settings for the Android app Market?

    I recently tried to update my app in the Android app market and when I uploaded it I got the following message:
    "The new apk's versionCode (1000000) already exists."
    In the Flash Adnroid settings I changed the version label but that did not help.
    So I have two questions:
    How do I change the Version code in the Flash Android settings? I changed the version number and version label but that did not work.
    What is the difference between the version number and version label?

    I tried that but it did not work. Apparently there is a difference between the version code and version number (which is set in the Android settings). From my research the version label is optional, so there are no problems there.
    This is the what the XML file says:
    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <application xmlns="http://ns.adobe.com/air/application/2.6">
      <id>com.company.nameofapp</id>
    //Below is the correct version number, but has no relation to the version code.
      <versionNumber>1.1.0</versionNumber>
      <versionLabel>NewLayout</versionLabel>
      <filename>Name of app</filename>
      <description/>
    I did find this piece of information for Androin version codes. (http://developer.android.com/guide/publishing/versioning.html)  But I don't know how to place it into the xml file without conflicting with other code.
    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.example.package.name"
          android:versionCode="2"
          android:versionName="1.1">
        <application android:icon="@drawable/icon" android:label="@string/app_name">
        </application>
    </manifest>
    Any other thoughts are much appreciated.

  • VA01 ATP incorrecct results when delivery date is programmatically changed

    Hi Guru's,
    When creating or modifying a sales order (VA01 & VA02), we need to programmatically assign the delivery date a) for certain customers or b) when the delivery priority is changed from downs to regular order and visa-versa. For examples: 1) user enters a delivery date 02/01/2012, the program (userexit_check_vbep) will automatically replace it with a calculated
    date (i.e.. 2/20/2012). 2) if user changes the delivery priority from regular order to a downs order, the program will automatically replace delivery date to current date.
    But are getting incorrect ATP results when requested delivery date (based on what user enters in VBAP-LPRIO "delivery priority") is programmatically changed and then user manually enters the date and run ATP (see steps 8 & 9 below).  
    VA01 execution steps:
    1) Used VA01 and entered a material of quantity 1, requested date 2/01/2012, delivery priority = regular. Date was overwritten automatically with program calculated date 2/20/2012 as expected.
    2) ATP automatically ran successfully for the initial entry.
    3) I then changed the delivery priority from regular order to downs order & requested delivery date was automatically changed to current date 02/01/2012 as expected.
    4) ran ATP manually and all is well.
    5) I then changed the delivery priority back to a regular order and date was automatically changed back to 02/20/2012 as expected.
    6) I ran ATP manually and again all is well.
    7) I then manually changed the delivery date 02/25/2012.
    Incorrect / bad results:
    8) ATP then passed back 2 sub-items lines with the quantity of 1 each. The quantity on the main line item is doubled to 2.
    9) I then tried to delete the main line item manually to start all over, but the transaction just hangs because it tries to go to ATP, but cannot resolve what to delete.
    Do you have any suggestions to help resolve this?   
    The following SAP user-exits were modified:
    a) MV45AFZB
      1) userexit_check_vbap
      - for certain customers (a custom "override days" field stored in VBAP is populated), delivery date is automatically calculated using this field (i.e.  current date + override days).   If user entered date < calculated date,   calculated date is used (xvbep-edatu).
      - If user changes delivery priority, xvbep-edatu will be set automatically to either the calculated date (regular order) or current date (downs order).
      2) userexit_check_vbep : if user enters a delivery date (vbep-edatu), it is checked against calculated delivery date & overwritten, if it is < calculated date.
    b) MV45AFZZ - userexit_move_field_to_vbap :
      - override days is determined & delivery date is automatically calculated. If user entered date < calculated date, calculated date is used (xvbep-edatu).
      - If user changes delivery priority, xvbep-edatu will be set automatically to either the calculated date (reg.order) or current date (downs order)
    Reason for updating xvbep: if only vbap-lprio or vbap-override (custom field) fields are changed, the VBEP user exit routines (userexit_move_field_to vbep or userexit_check_vbep)  do not run.  Change to xvbep does trigger userexit_check_vbep.
    Please advise.
    Joe

    This is not an SD question and should be moved to ABAP forum. It seems to me that the issue is not with incorrect ATP but with the subitems / main item updated incorrectly. This needs to be resolved by a developer who wrote the user exit. Most likely either a user exit is triggered when not expected or a wrong line updated, etc. Debugger should be helpful.
    Also instead of setting delivery priority, why can't the users just change the delivery date to current date? This seems just as easy to me...

  • How to programmatically change the cell color of an ADF table ?

    Hi all,
    I have an ADF table with some fields on it. Depending on the value of a field named, say, "F1", I would like to change its background color.
    So far I can change the field color with this EL expression inside the InlineStyle table column property:
    font-size:medium; background-color:#{viewScope.myBean.setColor};
    where setColor is a bean function, in where I access the field "F1" via binding, parse its value, and return the right value - so far, so good.
    The bad thing is, the InlineStyle affects that field in all the rows of the table, while I would like to change only the field in the rows, which have that specific value in it.
    So for example having the rows:
    F1
    abc#1 ----> currently selected row
    cde#2
    efg#3
    I want to change the background color to all the F1 fields which have a "1" after the '#' and let the other "F1" row cells background color stay unchanged.
    But as you can imagine, the InlineStyle affect the "F1" background color in all the rows (assuming that the first row of the table is selected).
    So the question: how to access a single cell of a row in an ADF table, and programmatically change its background color ?
    So far I can iterate through the ADF table with:
    BindingContext bindingctx = BindingContext.getCurrent();
    BindingContainer bindings = bindingctx.getCurrentBindingsEntry();
    DCBindingContainer bindingsImpl = (DCBindingContainer) bindings;
    DCIteratorBinding dciter = bindingsImpl.findIteratorBinding("aTableIterator");//access the iterator by its ID value in the PageDef file
    RowSetIterator rsi = dciter.getRowSetIterator();
    System.out.println("rsi getrowcount = " rsi.getRowCount());+
    Row row = null;
    +if (rsi.getRowCount() > 0) {+
    row = rsi.getCurrentRow();
    System.out.println("row attr = " Arrays.toString(row.getAttributeNames()));+
    System.out.println("class : " row.getAttribute("F1").getClass().toString());+
    +}+
    +while (rsi.hasNext()) {+
    row = rsi.next();
    System.out.println("row attr = " Arrays.toString(row.getAttributeNames()));+
    +}+
    Regards,
    Sergio.

    Hi,
    I mean a specific cell within a row.
    Here are two pictures that show an ADF table with two rows and some fields on it:
    https://skydrive.live.com/?cid=7D3084D8BF755808&id=7D3084D8BF755808!107&sc=documents#cid=7D3084D8BF755808&id=7D3084D8BF755808!107&sc=documents
    bild_A is what I have, bild_B is what I would like. Note that:
    in bild_A the first row contain a yellow background color for the field F4 and an orange background color for the field F5. This is correct, because F4 has an "1" at the end of its string value, and F5 has a "3" at the end. So far so good.
    But the second row (again, bild_A) has also the fields F4 with yellow background color, and the field F5 with orange background color, even if the value in both fields is 0.
    What is should be, is shown in bild_B.
    The problem is that the solution provided affects all the cells of the column, while I need to change the background color of a single cell, and leave the other unchanged (see bild_B).
    I hope that clarify a bit :)
    Sergio.

  • Is it possible to change the version of Flash Player that Adobe Reader 9 uses?

    I'm currently attempting to put some flash content within a pdf using the new Rich Media extensions.  I have a working Flash .swf  that uses some of the newer methods that only Flash Player 10 supports.  The file can run on its own within Flash Player 10, but inside Adobe Reader 9 the flash player version is set to WIN 9,0,159,0 and the .swf file does not work.  Is there any way to change the version of the Flash Player used in Adobe Reader 9?

    Try code like this:
    <pre><nowiki>#window-controls .toolbarbutton-icon {
    width: 25px !important;
    height: 25px !important;
    </nowiki></pre>
    The three buttons have these IDs:
    <pre><nowiki>#minimize-button
    #restore-button
    #close-button</nowiki></pre>

Maybe you are looking for

  • Urgent Help need for PCUI

    Hello    We have customization screen in Sales Transaction.    It is working fine in CRM.    But From Enterprice Portal That screen disappear.    From some documentation To use EEWb.    I generate prject in EEWB.    In Deziner also I got field.    My

  • What adobe product will allow me to edit a pdf file in its orignal form.

    What adobe product  will allow me to edit a pdf file in its orignal form. I want to scan in a document in its orignal form and edit the document. Is this possible?  Please help where and how. Thanks

  • Seamless Generation of intermitte​nt patterns

    I'm using a 6562 device for generation of clock and commands for an ASIC.  I need two clocks generated (say 100MHz and 50MHz) as well as the commands for the chip. The commands are not send in a continuous manner, though the clocks shall be seamless.

  • Import ddf.minim.AudioOutput;

    Hi, I have some sample code that I am trying to compile that includes the import statement import ddf.minim.AudioOutput; I get the error import ddf cannot be resolved. From looking at the documentation, it looks like ddf is a part of Java. I think th

  • ICal 10.5 missing iPhone entries

    For some reason that I've yet to determine, any new event entry created on the iPhone does not show up in iCal on OS 10.5(.1). I know it's iCal Leopard because other Macs synced through .Mac using Tiger 10.4 show the event in that iCal. The 10.5 Mac