Sign inSign up

tomuchiha/jenkins-agent-c-cpp-python

By tomuchiha

Updated about 2 months ago

Jenkins inbound agent (Debian Bookworm, JDK 21) with Python 3, and C++ build tools (gcc, g++, make).

Buildkit cache
Image
Integration & delivery
0

1.6K

tomuchiha/jenkins-agent-c-cpp-python repository overview

Jenkins Agent: C, C++, Python & Java 21

A custom Jenkins inbound agent based on the official jenkins/inbound-agent:bookworm-jdk21 image. This image is pre-configured to support mixed-language pipelines requiring Python 3 scripting, C, and C++.

🚀 Features

  • Base OS: Debian Bookworm (Slim) for maximum glibc compatibility.
  • Java: OpenJDK 21 (Matches modern Jenkins controllers).
  • Python: Python 3 + pip installed.
  • C/C++: Full build environment via build-essential (gcc, g++, make, libc-dev).
  • Tools: git included for source control.
  • Security: Runs as non-root jenkins user (UID 1000).

🛠️ Included Tools

ToolVersionPackage
Java21openjdk-21-jdk
Python3.xpython3, python3-pip
C++ CompilerLatestg++ (via build-essential)
C CompilerLatestgcc (via build-essential)
BuildLatestmake, dpkg-dev
Version ControlLatestgit

📦 Usage

1. Jenkins Cloud Configuration

Use this image in your Jenkins Docker Cloud settings:

  • Docker Image: tomuchiha/jenkins-agent-c-cpp-python:latest
  • Labels: python-cpp-agent (or your preferred label)
  • Connect Method: Attach Docker container (Recommended for Windows) or Connect agent with JNLP.
2. Pipeline Example (Jenkinsfile)
pipeline {
    agent {
        label 'python-cpp-agent'
    }
    stages {
        stage('Build C++') {
            steps {
                sh 'g++ --version'
            }
        }
        stage('Run Python') {
            steps {
                sh 'python3 --version'
            }
        }
    }
}   

Tag summary

Content type

Image

Digest

sha256:63734acee

Size

248.1 MB

Last updated

about 2 months ago

docker pull tomuchiha/jenkins-agent-c-cpp-python