Giter Club home page Giter Club logo

cloud-s4-sdk-pipeline-lib's Introduction

Pipeline Library for the SAP S/4HANA Cloud SDK

Description

This pipeline library is used by SAP S/4HANA Cloud SDK Pipeline. It defines the common steps (functions) in a Jenkins pipeline to build, test and deploy applications to the SAP Cloud Platform.

Requirements

To use the pipeline library you must have a git project which uses a pipeline, such as the SAP S/4HANA Cloud SDK Pipeline.

Download and Installation

To use the library in a pipeline you have to configure this library as a globally shared library.

To avoid the manual steps described in that documentation you can use the SAP S/4HANA Cloud SDK Cx Server.

For instantiating the SAP S/4HANA Cloud SDK Cx Server, you need to provide a suitable host with a Linux operating system and Docker installed. Please also ensure that the user with whom you start the Cx Server belongs to the docker group.

Your project source files need to be available on a git or GitHub server, which is accessible from the Cx Server host.

The lifecycle of the Cx Server is maintained by a script called cx-server. It can be found in the same named folder on the root of each SAP S/4HANA Cloud SDK project archetype. Together with the server.cfg file, this is all you need for starting your instance of the SAP S/4HANA Cloud SDK Cx Server.

To create a new project using the SDK execute the following command:

 mvn archetype:generate -DarchetypeGroupId=com.sap.cloud.s4hana.archetypes -DarchetypeArtifactId=scp-cf-tomee -DarchetypeVersion=RELEASE

In the new project, there is a folder called cx-server. This folder needs to be copied to the future host on which the Cx Server is intended to run.

On the host machine execute the following command in the folder cx-server. This will start the Jenkins server.

 ./cx-server start

In Jenkins click on "New Item" and create a new "Multibranch Pipeline" for your repository.

Now you can use the pipeline in a Jenkinsfile by adding the following line on top of the file.

@Library(['s4sdk-pipeline-library']) _

If you decide for SAP S/4HANA Cloud SDK Pipeline, this is already done for you.

Known Issues

Currently, there are no known issues.

How to obtain support

If you need any support, have any question or have found a bug, please report it as an issue in the repository.

License

Copyright (c) 2017-2018 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file.

cloud-s4-sdk-pipeline-lib's People

Contributors

daniel-kurzynski avatar fwilhe avatar benhei avatar kurzy avatar jjtang1985 avatar rkamath3 avatar jonathanbaker7 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.