Skip to content

Latest commit

 

History

History

boilerplate

Boilerplate

The sap-automation repository is a framework that offers you automation to deploy a SAP certified installation. To use the sap-automation framework you need to create a repository of your own and reference the sap-automation repository. This way you keep your organization specific configuration and the sap-automation framework separate. Having the configuration separate prevents you from making unintended changes to the sap-automation framework and gives you the possibility to add your own processes and configuration on top of the sap-automation framework by including additional pipelines.

Getting started

To get started with your own configuration repository we added this boilerplate with the most basic configuration for the pipelines already configured. Just copy the content of the boilerplate folder into the root of your configuration repository and change the following configuration.

In the resources.yml configure the following configuration by replacing <MyGithubConnector> with the name of your Github connector.

    - repository: sap-automation
      type: github
      name: Azure/sap-automation
      endpoint: <MyGithubConnector>
      ref: refs/heads/main

The procedure to create a service connection is described here

How it works

During pipeline execution the two repositories will be present on the deployer-agent. Each of the repositories will be mapped using the following:

  • sap-automation will be mapped to /sap-automation
  • customer configuration repository will be mapped to /config

During execution the repositories will interact with each other by using the following:

flowchart LR
    subgraph deployer-agent
        pipeline--uses-->templated-pipelines
        templated-pipelines--uses-->workspace-configuration
        subgraph customer repository
            workspace-configuration
            pipeline
        end
        subgraph sap-automation
        templated-pipelines--executes-->sap-installation
        end
    end
Loading

Custom Nightly

To validate the remote repository every night on your own environment there is a nightly.yml inside custom. You can change this to your own needs. The configuration of variables is just an example. Look for the MGMTNIGHTLY and the NIGHT configuration inside the WORKSAPCES for the configuration you want to deploy there. The deployment will be removed after success.

Create the following libraries to support the nightly build:

  • MGMTNIGHTLY
  • NIGHT