Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

How to deploy files to service.un.org

Table of Contants

Table of Contents
exclude^How to deploy files to service.un.org$

This how-to describes process of getting files from your local PC to service.unece.org using Repositories and Pipelines. Should be reffered to typically when a new version of UN/EDIFACT, UN/LOCODE or other deliverable hosted on service.unece.org is produced and needs to be published.

Info
titleTerms
  • Local Repository - Folders and files on your Local PC,
  • Remote Repository - Folders and files on remote Server, these files are used by Pipeline
  • Clone - Process of copying files from the Remote Repository to the Local Repository
  • Commit - Finalazing a change in files, should contain commed describing reason of the change
  • Push - Process of moving changes from Local Repository to Remote Repository, One Push can contain multiple commits
  • Pipeline - Automated process for moving files between environments (typicaly Remote Repository → Stage → Production)
  • Stage - Staging / Testing / Quality Assurance (QA) environemnt, serves for final validation of files before moving them into Production environemtn (service-qa.unece.org)
  • Production - Production environment, final destination of our files (service.unece.org)

(not covered, Pull, Pull-request, Branch, Merge, another billion of Git's features etc. ...)

Diagram

Simplified diagram of the whole process:

Gliffy Diagram
nameFiles-Deployment
pagePin5

Resources

Repository Web interface

Repository GUI

Pipeline Web interface

Working with Git

Official Sourcetree documentation

Step-by-step guide

Installing and Configuring tools

Sourcetree Initial configuration 

  • Download and install Sourcetree, if needed install also MS .NET Framework 7.4.1, as this requires Administrator privilegies, ask ISU for assistance
  • After Installation run Sourcetree application
  • As part of initial execution, configure Sourcetree - useraccount and tools

    1. Login to remote Repository 
    2. Authenticate user (using Windows / Active Directory credentials)
    3. If Credentials are correct, you should see confirmation
    4. Select modules for installation (we need only Git)
    5. Module installation - progress
    6. Module installation - confirmation
    7. SSH key configuration (can be skipped)

Cloning Repository

  • After Initial setup we configure and clone repositories
    1. Add a new repository
    2. On remote server, click "Clone in SourceTree" for easy configuration, or click on "Clone" and copy repository link (for Git repositories the link ends with .git)
    3. Review Cloning configuration, select local folder where files shoud be stored
    4. Run Clone and wait for process to finish

Making a change in files

  • Local repo without a change (local repo in sync with the remote repo)

  • Local repo in windows explorer
  • New files (selected) to be transferred to local repo in windows explorer
  • Transfer to local repo running
  • We have a new files (we updated the current files) in our local repo (this is considedred as a change, another type of change is adding and removing files/folders) 
    1. New files in local repo - file status
    2. New files in local repo - Commit Log
    3. Diff - one line change example
    4. Diff - new lines example
    5. Diff - Line change example (- removed, + added)
    6. Files Staged
    7. Adding commit message
    8. Commit user info
    9. Adding mail
    10. Commit is linked to user account
    11. After commit - back in sync a Push is available
    12. After commit - Log - Push prepared
    13. Push branch selection
    14. Push running
    15. Push completed
    16. Bitbucket - Remote repo - Commits
    17. Bitbucket - Remote repo - Sources

Running Pipelines

  • Go to Trade Division pipelines - https://bamboo.unece.org/browse/TRADE
    1. Select desired Pipeline (in our case, as we are deploying new LOCODE Directory version - Service LOCODE)

    2. Select job (plan) to run

From Local Repository to Stage

  1. Deploy to Stage - start
  2. Deploy to Stage - running

  3. Deploy to Stage - completed

  4. Changes appear on Stage for validation (service-qa.unece.org

    1. Page
    2. Source

From Stage to Prod

  1. Deploy to production - run option 1
  2. Deploy to production - run option 2
  3. Deploy to production - running
  4. Deploy to production - completed
  5. Changes appear on Production (service.unece.org)
  6. Changes appear on Production (service.unece.org) - source view
  7. Link files to Production

 

86 this section

Prerequisities

 

Step-by-step guide

 

Info

Content by Label
showLabelsfalse
max5
spacesthemepressdemo
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "themepressdemo"
labelskb-how-to-article

Page properties
hiddentrue
Related issues