Jump to content

QESTNET.Upgrade Internal:Creating Build 1.0: Difference between revisions

From QESTonline
No edit summary
 
No edit summary
Line 1: Line 1:
==QESTNET.Upgrade 1.0 Release Build Process (Fugro 4.0)==
==QESTNET.Upgrade 1.0 Release Build Process (Fugro 4.0)==
#Checkout the approriate branch for the build from qestnet.ugprade repository. E.g. fugro-dbb.
<ol>
#Update the build parameter in package_development.bat and package_release.bat in the root directory with the new build version number. E.g.,  
<li>Checkout the approriate branch for the build from qestnet.ugprade repository. E.g. fugro-dbb.</li>
#: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe build.proj /t:SetVersion;RebuildAll /p:Configuration=Development;MajorVersion=1;MinorVersion=0;Build='''205'''
<li>Update the build parameter in '''package_development.bat''' and '''package_release.bat''' in the root directory with the new build version number. E.g.,  
#Run package_release.bat.
<blockquote>C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe build.proj /t:SetVersion;RebuildAll /p:Configuration=Development;MajorVersion=1;MinorVersion=0;Build='''205'''
#Copy QESTNET.Upgrade.dll, QESTNET.Upgrade.UI.exe and  QESTNET.Upgrade.UI.exe.Config in ~\QESTNET.Upgrade\bin\Release\ to a temporary folder for zipping.
</blockquote></li>
#Copy the Scripts folder in the root directory to this temporary folder.
<li>Run '''package_release.bat'''.</li>
#Update the QESTNET.Upgrade.UI.exe.Config file to the below xml.
<li>Copy '''QESTNET.Upgrade.dll''', '''QESTNET.Upgrade.UI.exe''' and  '''QESTNET.Upgrade.UI.exe.Config''' in '''~\QESTNET.Upgrade\bin\Release\''' to a temporary folder for zipping.</li>
<pre>
<li>Copy the folder (and contents) '''Scripts''' in the root directory to this temporary folder.</li>
<li>Update the '''QESTNET.Upgrade.UI.exe.Config''' file to the below xml.
 
<blockquote><pre>
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configuration>
Line 20: Line 23:
   </connectionStrings>
   </connectionStrings>
</configuration>
</configuration>
</pre>
</pre></blockquote>
#Zip the contents of the temporary folder and name the zip QESTNET.Upgrade v1.0.XXX.zip where XXX is the build version number.
</li>
#Copy the zip file to \\adls0003\Development\Product Distribution\QESTNET.Upgrade\. This will make the release publicly available.
<li>Zip the contents of the temporary folder and name the zip '''QESTNET.Upgrade v1.0.XXX.zip''' where XXX is the build version number.</li>
#Commit the qestnet.upgrade branch changes to git with commit message 'Prepare release v1.0.XXX' where XXX is the build version number. The AssemblyVersion classes, database_upgrade.qn.manifest and package batch files would have changed.
<li>Copy the zip file to '''\\adls0003\Development\Product Distribution\QESTNET.Upgrade\'''. This will make the release publicly available.</li>
#Tag the commit with 'v1.0.XXX' where XXX is the build version number.
<li>Commit the qestnet.upgrade branch changes to git with commit message 'Prepare release v1.0.XXX' where XXX is the build version number. The AssemblyVersion classes, database_upgrade.qn.manifest and package batch files would have changed.</li>
#Push the commit to github.  
<li>Tag the commit with 'v1.0.XXX' where XXX is the build version number.</li>
#Push the tag to github (tags need to be pushed explicitly).
<li>Push the commit to github.</li>
#Inform appropriate parties of the new release build.
<li>Push the tag to github (tags need to be pushed explicitly).</li>
#Have a non-alcoholic beverage as this was too easy.
<li>Inform appropriate parties of the new release build.</li>
<li>Have a non-alcoholic beverage as this was too easy.</li>
</li>
</ol>

Revision as of 00:51, 29 January 2016

QESTNET.Upgrade 1.0 Release Build Process (Fugro 4.0)

  1. Checkout the approriate branch for the build from qestnet.ugprade repository. E.g. fugro-dbb.
  2. Update the build parameter in package_development.bat and package_release.bat in the root directory with the new build version number. E.g.,

    C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe build.proj /t:SetVersion;RebuildAll /p:Configuration=Development;MajorVersion=1;MinorVersion=0;Build=205

  3. Run package_release.bat.
  4. Copy QESTNET.Upgrade.dll, QESTNET.Upgrade.UI.exe and QESTNET.Upgrade.UI.exe.Config in ~\QESTNET.Upgrade\bin\Release\ to a temporary folder for zipping.
  5. Copy the folder (and contents) Scripts in the root directory to this temporary folder.
  6. Update the QESTNET.Upgrade.UI.exe.Config file to the below xml.
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
       <startup useLegacyV2RuntimeActivationPolicy="true"> 
          <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
       </startup>
       <appSettings>
          <add key="manifestPath" value="./Scripts/database_upgrade.qn.manifest" />
       </appSettings>
       <connectionStrings>
          <!--<add name="Example" connectionString="data source=ADLS0007\CUSTOMER2008R2;initial catalog=QESTLab_EXAMPLE;integrated security=True;multipleactiveresultsets=True;Asynchronous Processing=True;App=QestnetUpgrade"/>-->
       </connectionStrings>
    </configuration>
    
  7. Zip the contents of the temporary folder and name the zip QESTNET.Upgrade v1.0.XXX.zip where XXX is the build version number.
  8. Copy the zip file to \\adls0003\Development\Product Distribution\QESTNET.Upgrade\. This will make the release publicly available.
  9. Commit the qestnet.upgrade branch changes to git with commit message 'Prepare release v1.0.XXX' where XXX is the build version number. The AssemblyVersion classes, database_upgrade.qn.manifest and package batch files would have changed.
  10. Tag the commit with 'v1.0.XXX' where XXX is the build version number.
  11. Push the commit to github.
  12. Push the tag to github (tags need to be pushed explicitly).
  13. Inform appropriate parties of the new release build.
  14. Have a non-alcoholic beverage as this was too easy.