SAP / jenkins-library

Jenkins shared library for Continuous Delivery pipelines.
https://www.project-piper.io
Apache License 2.0
779 stars 586 forks source link

Piper installation with Jenkins on Windows #427

Closed nabhanm closed 5 years ago

nabhanm commented 5 years ago

Hello, Trying to install Piper on Jenkins running on my Windows Machine. Does the library support Jenkins running on Windows or does it work with Linux only as mentioned in the Pre-requisites.

OliverNocon commented 5 years ago

Hi,

the library will only run on a Jenkins on a Linux machine. If you want to run it on Windows I would suggest to use Docker. We are currently preparing a suitable Docker image in https://github.com/SAP/devops-docker-images/

For now you can use the public Jenkins Docker image (https://hub.docker.com/r/jenkins/jenkins/) and install the required plugins.

Best regards, Oliver

fwilhe commented 5 years ago

Hi @nabhanm,

just to add another option until the https://github.com/SAP/devops-docker-images/ image is ready:

You may also use the s4sdk/jenkins-master docker image from Docker hub, which has the piper library already configured. This also comes with a life-cycle management script called cx-server which basically automates the whole setup, see for details.

Basic usage is described here https://github.com/SAP/cloud-s4-sdk-pipeline#requirements

Kind regards

Florian

nabhanm commented 5 years ago

Thank you for the responses @OliverNocon and @fwilhe. I will check the mentioned options and follow it to set up Piper.

Just to understand and for my knowledge, Jenkins has no dependency on the OS it is running, if I'm not wrong, then: Why does the library require only Linux? Is it tested or WIP for Windows machines as well?

Regards, Nabhan

1084565 commented 5 years ago

The library uses bash commands and command line tools, hence the Linux requirement. As the other's mentioned, Jenkins-on-Docker-on-Windows might be an alternative. Feedback is welcome.

fwilhe commented 5 years ago

I forgot to mention that the cx-server script also comes in a version for Windows, so if you have installed Docker on your Windows machine, I encourage you to try this out. Usage is shown in Unit 2 of Week 3 of this opensap course (approx. at min 7:30 of the video).