CID-Jenkins

Last modified by Christian Reiber on 2021/09/24 19:38

Purpose

This software stack provides Jenkins, a Continuous Integration/Deployment (CID) and automation service. Jenkins provides the building, deploying and automating of any project.

Properties

 Stack-Description  Jenkins Continuous Integration/Deployment (CID)    
 Stack-Image        docker.msg.team/ps/docker-stack-cid-jenkins   
 Stack-Version      2.462.1 
 Stack-Release      20240820 
 Product-Name  Jenkins 
 Product-Vendor  Kohsuke Kawaguchi 
 Product-Contact  https://jenkins.io/ 
 Product-Model  Open Source 
 Product-License  MIT 
 Product-Limits  none 
Implementation Base  Java
Execution Base       JVM
Initial Start Time   00:00:15
Documentation       https://jenkins.io/doc/

Topology

The stack consists of a single container:

  • cid-jenkins: the Jenkins application.

Configuration

Variable Name       Default Meaning  
CFG_JENKINS_MAIL_SMTP_SERVER   
CFG_JENKINS_MAIL_DEFAULT_RECIPIENT   
CFG_JENKINS_MAIL_SMTP_PASSWORD   
CFG_JENKINS_MAIL_SMTP_PORT   
CFG_JENKINS_MAIL_SMTP_USERNAME   
CFG_JENKINS_DEFAULT_DEBIAN_SLAVE_IMAGE_NAME   
CFG_JENKINS_JDKMVN_DEBIAN_SLAVE_IMAGE_NAME   
CFG_JENKINS_INITIAL_ADMIN   
CFG_JENKINS_INITIAL_ADMIN_PWD   
CFG_JENKINS_ADMIN_MAIL_ADDRESS   
CFG_JENKINS_URL   
CFG_JENKINS_CASC_RELOAD_TOKEN   

See also the variables which control integration of the stack into the reverse proxy.
For changes to take effect the stack has to be reinstalled.

First Steps

The stack is preconfigured with the administrative user admin with password admin. The Jenkins postinstallation has already been carried out.

To create a first, very simple Jenkins Job...

  • login to Jenkins as admin
  • click New Item
  • provide a name for your Job and select Freestyle project and click Ok
  • next, you can select an already configured connection to an SCM system, add build triggers, build steps, etc.

Jenkins also knows about the concept of a pipeline as a chain of tasks to get from source code to an application running in a runtime environment. The pipeline is defined in a text file called a Jenkinsfile.

To configure a Pipeline Job in Jenkins...

  • install the "Pipeline" plugin. Its dependencies will be addes automatically.
  • click New Item
  • provide a name for your Job and select Pipeline and click Ok
  • supply a Jenkinsfile (or use one of the examples provided in the Job page itself).
  • save
  • click on Build now to run the Pipeline build

Related Documents

 

Tags:
Created by Christian Reiber on 2020/01/07 14:30

Navigation