Automatic RElease Service JCOP and UNICOS Releases Ivan Prieto Barreiro ARES JCOP and UNICOS Releases 27/04/2016
ARES JCOP and UNICOS Releases Summary JCOP & UNICOS Drupal Sites Component Releases Overview Configuration (Jenkins job, Maven build) Jenkins job creation Drupal Publications New component page Define software components (Maven build, Jenkins job) Feeds Importer Edit Releases Some considerations … Documentation ARES JCOP and UNICOS Releases 27/04/2016
JCOP & UNICOS Drupal Sites ARES JCOP and UNICOS Releases 27/04/2016
JCOP & UNICOS Drupal Sites https://jcop.web.cern.ch/jcop-framework-components https://unicos.web.cern.ch/unicos-framework https://unicos.web.cern.ch/siemens-step-7-plc-baseline https://unicos.web.cern.ch/schneider-unity-plc-baseline https://unicos.web.cern.ch/codesys-plc-baseline ARES JCOP and UNICOS Releases 27/04/2016
ARES JCOP and UNICOS Releases Component Releases ARES JCOP and UNICOS Releases 27/04/2016
Release Overview Software releases and publications Compile Test Package Integration test Install Deploy Publish Software releases and publications are triggered from Jenkins only! ARES JCOP and UNICOS Releases 27/04/2016
ARES JCOP and UNICOS Releases Deploy to Nexus & EDMS Deploy to Nexus staging repo Test & validate Drop Release private Publish staged artifact (Nexus) Publish EDMS document public ARES JCOP and UNICOS Releases 27/04/2016
ARES JCOP and UNICOS Releases Deploy to Nexus & EDMS ARES JCOP and UNICOS Releases 27/04/2016
ARES JCOP and UNICOS Releases Configuration Jenkins job Configure promotions Drop Release Configure properties [optional] Target platform. E.g. WinCC OA 3.14 Requirements. E.g. fwXML-5.0.2 https://wikis.web.cern.ch/wikis/display/EN/Jenkins+Job+Configuration Maven build Configure edms-maven-plugin Deploy software and documentation to EDMS Deploy a properties file containing meta-data to Nexus https://wikis.web.cern.ch/wikis/display/EN/Maven+pom.xml+configuration ARES JCOP and UNICOS Releases 27/04/2016
Jenkins: Automatic Job Creation Create a job automatically with: Configured promotions (Release, Drop) Release meta-data ARES JCOP and UNICOS Releases 27/04/2016
ARES JCOP and UNICOS Releases Drupal Publications ARES JCOP and UNICOS Releases 27/04/2016
Drupal Publications Overview Define Software components (EDMS, Nexus) Get released versions Get release meta-data Get release notes link Populate database Import feeds ARES JCOP and UNICOS Releases 27/04/2016
Drupal: New Component Page ARES JCOP and UNICOS Releases 27/04/2016
Define Software Components Maven builds (Will be done by BE-ICS-CIC) Component definitions https://svn.cern.ch/reps/en-ice-svn/trunk/tools/ARES/get-jcop-components https://svn.cern.ch/reps/en-ice-svn/trunk/tools/ARES/get-unicos-components ARES JCOP and UNICOS Releases 27/04/2016
Define Software Components Jenkins jobs Get UNICOS/JCOP releases Only new releases will be taken into account (no release updates) Executed daily ARES JCOP and UNICOS Releases 27/04/2016
Drupal: Feeds Importer ARES JCOP and UNICOS Releases 27/04/2016
ARES JCOP and UNICOS Releases Drupal: Edit Releases ARES JCOP and UNICOS Releases 27/04/2016
ARES JCOP and UNICOS Releases Some Considerations … EDMS Releases Create a new document version, not a new EDMS document! Keep a unique name format for the binaries Drupal : To Review Component owner is correct Information in the component/subcomponent page List of released versions Provide meta-data WinCC OA version of the binaries Operative system (?) Modify existing releases in Drupal Add notes to a specific release using the Notes field Add release meta-data: WinCC OA version, Platform .. Other release fields may be modified if they are empty Jira Grant permissions to bjenkins user to perform REST queries (release notes) Jenkins Job to update component releases executed daily ARES JCOP and UNICOS Releases 27/04/2016
ARES JCOP and UNICOS Releases Documentation Procedures https://wikis.web.cern.ch/wikis/display/EN/ARES Drupal: Create a new component page Drupal: Edit a component release Jenkins: Job configuration Jenkins: Job creation Maven: Add a new JCOP/UNICOS component Maven: pom.xml configuration Service Status Monitoring Maven Plug-ins edms-maven-plugin: https://edms-maven-plugin.web.cern.ch/edms-maven-plugin/ released-components-maven-plugin: To be done … ARES JCOP and UNICOS Releases 27/04/2016