diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..11e58472 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,24 @@ +#!/usr/bin/env groovy + +/* + * This file bootstraps the codified Continuous Delivery pipeline for extensions of SAP solutions, such as SAP S/4HANA. + * The pipeline helps you to deliver software changes quickly and in a reliable manner. + * A suitable Jenkins instance is required to run the pipeline. + * The Jenkins can easily be bootstraped using the life-cycle script located inside the 'cx-server' directory. + * + * More information on getting started with Continuous Delivery can be found in the following places: + * - GitHub repository: https://github.com/SAP/cloud-s4-sdk-pipeline + * - Blog Post: https://blogs.sap.com/2017/09/20/continuous-integration-and-delivery + */ + +/* + * Set pipelineVersion to a fixed released version (e.g. "v15") when running in a productive environment. + * To find out about available versions and release notes, visit: https://github.com/SAP/cloud-s4-sdk-pipeline/releases + */ +String pipelineVersion = "master" + +node { + deleteDir() + sh "git clone --depth 1 https://github.com/SAP/cloud-s4-sdk-pipeline.git -b ${pipelineVersion} pipelines" + load './pipelines/s4sdk-pipeline.groovy' +} diff --git a/mta.yaml b/mta.yaml new file mode 100644 index 00000000..60877e25 --- /dev/null +++ b/mta.yaml @@ -0,0 +1,44 @@ +####### Generated mta.yaml based on template version 0.2.0 +####### appName = capire-bookshop +####### language=nodejs; multiTenant=false +####### approuter= + +_schema-version: '3.1' +ID: sap.capire-bookshop +version: 1.0.0 +description: "A simple bookshop application, build in a self-contained all-in-one fashion, i.e. w/o reusing other packages." + +build-parameters: + before-all: + - builder: custom + commands: + - npm install + - cds build/all + +parameters: + enable-parallel-deployments: true + +modules: + ############## SERVER MODULE ########################## + - name: capire-bookshop-srv + type: nodejs + path: gen/srv + properties: + EXIT: 1 # required by deploy.js task to terminate + + + + ############################################################ + + ############## SIDECAR MODULE ######################### + - name: db + + type: hdb + path: gen/db + parameters: + app-name: capire-bookshop-db + requires: + #### Hana and xsuaa resources extracted from CAP configuration #### + ############################################################ + + diff --git a/pipeline_config.yml b/pipeline_config.yml new file mode 100644 index 00000000..f97a30a3 --- /dev/null +++ b/pipeline_config.yml @@ -0,0 +1,55 @@ +### +# This file configures the SAP Cloud SDK Continuous Delivery pipeline of your project. +# For a reference of the configuration concept and available options, please have a look into its documentation. +# +# The documentation for the most recent pipeline version can always be found at: +# https://github.com/SAP/cloud-s4-sdk-pipeline/blob/master/configuration.md +# If you are using a fixed version of the pipeline, please make sure to view the corresponding version from the tag +# list of GitHub (e.g. "v15" when you configured pipelineVersion = "v15" in the Jenkinsfile). +# +# For general information on how to get started with Continuous Delivery, visit: +# https://blogs.sap.com/2017/09/20/continuous-integration-and-delivery +# +# We aim to keep the pipeline configuration as stable as possible. However, major changes might also imply breaking +# changes in the configuration. Before doing an update, please check the the release notes of all intermediate releases +# and adapt this file if necessary. +# +# This is a YAML-file. YAML is a indentation-sensitive file format. Please make sure to properly indent changes to it. +### + + + +### General project setup +general: + + +### Step-specific configuration +steps: + + +### Stage-specific configuration +stages: + + # This exclude is required for the example project to be successful in the pipeline + # Remove it when you have added your first test + s4SdkQualityChecks: + jacocoExcludes: + - '**/OrdersService.class' + +# integrationTests: +# credentials: +# - alias: 'mySystemAlias' +# credentialId: 'mySystemCredentialsId' + +# s4SdkQualityChecks: +# nonErpDestinations: +# - 'myCustomDestination' + +# productionDeployment: +# cfTargets: +# - org: 'myOrg' +# space: 'mySpace' +# apiEndpoint: 'https://' +# appName: 'myAppName' +# manifest: 'manifest.yml' +# credentialsId: 'myDeploymentCredentialsId'