Skip to content

Automate process of uploading apps to IEM with Jenkins.

License

Notifications You must be signed in to change notification settings

industrial-edge/jenkins-cicd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI/CD pipelines with Jenkins

Automate process of uploading apps to IEM with Jenkins.

Description

Overview

This application example shows how to create Jenkins CI/CD pipelines to automatically upload applications to the Industrial Edge Management.

General task

The main goal of this example is to show how to setup Jenkins server and create Jenkins pipelines to upload applications to IEM. Jenkins can be integrated with several Git providers but GitHub is used for this example. With GitHub webhook feature it is possible on every commit to the GitHub repository to automatically trigger Jenkins pipeline on a Jenkins server that build, test and upload applications to IEM.

Requirements

Prerequisites

  • Installed Industrial Edge Management
  • Linux VM (will be used for Jenkins) with docker and docker-compose installed
  • VM has connection to IEM

Used components

  • Industrial Edge Device V 1.1.0-39
  • Industrial Edge Management V 1.1.16
  • VM - Ubuntu 20.04
  • Docker 19.03.13
  • Jenkins 2.263.3

Installation steps

The repository is divided into two main directories. The docs folder contains documentation that describes the necessary steps for installation and implementation. The documentation for the installation steps of the Jenkins server can be found here. The documentation for creating Jenkins pipeline using either docker or shell script can be found here. It describes the process of connecting GitHub repository with Jenkins using webhooks and creating Jenkins pipelines to automatically upload the app to a IEM, when code changes get pushed to the repository. The folder is extended by documentation describing implementation of the pipelines which can be found here

The src folder consist source code of Jenkins pipeline implementation using either shell script or docker.

Documentation

Contribution

Thank you for your interest in contributing. Anybody is free to report bugs, unclear documentation, and other problems regarding this repository in the Issues section. Additionally everybody is free to propose any changes to this repository using Pull Requests.

If you haven't previously signed the Siemens Contributor License Agreement (CLA), the system will automatically prompt you to do so when you submit your Pull Request. This can be conveniently done through the CLA Assistant's online platform. Once the CLA is signed, your Pull Request will automatically be cleared and made ready for merging if all other test stages succeed.

License and Legal Information

Please read the Legal information.

Disclaimer

IMPORTANT - PLEASE READ CAREFULLY:

This documentation describes how you can download and set up containers which consist of or contain third-party software. By following this documentation you agree that using such third-party software is done at your own discretion and risk. No advice or information, whether oral or written, obtained by you from us or from this documentation shall create any warranty for the third-party software. Additionally, by following these descriptions or using the contents of this documentation, you agree that you are responsible for complying with all third party licenses applicable to such third-party software. All product names, logos, and brands are property of their respective owners. All third-party company, product and service names used in this documentation are for identification purposes only. Use of these names, logos, and brands does not imply endorsement.