2025-06-03 22:40:11 +00:00
2025-06-03 21:50:28 +00:00
2025-06-03 22:32:01 +02:00
2025-06-03 21:48:38 +00:00
2025-06-03 22:32:01 +02:00
2025-06-03 22:25:22 +00:00
2025-06-03 22:40:11 +00:00

Swagger Documentation Generator Pipeline

This repository demonstrates a Jenkins pipeline that:

  1. Generates OpenAPI (Swagger) documentation from Protobuf (.proto) files using buf.
  2. Converts OpenAPI v2 to OpenAPI v3.
  3. Builds a Docker image that includes the generated documentation.
  4. Pushes the image to a remote Docker registry.

🚀 Prerequisites

Before using this pipeline, your Jenkins setup must include the following:

Jenkins Configuration

  • Jenkins Node (Agent):

    • This node must support Docker and allow running containers inside jobs.
    • Either Docker-in-Docker or mounting host socket (/var/run/docker.sock) must be configured.
  • Required Jenkins plugins:

    • Docker Pipeline (docker-workflow)
    • Git Plugin
    • Pipeline Plugin
    • Credentials Binding Plugin
  • Credentials:

    • Username and password or ssh key for cloning the Git repository.
    • Docker registry credentials for pushing images.

🔧 Required Tools (Agent-level)

The Jenkins agent must be able to:

  • Run Docker commands (docker build, docker push)
  • Pull and run the following images:
    • bufbuild/buf:latest
    • python:3-bookworm

These tools are used inside isolated docker blocks and do not need to be globally installed on the agent host system.


Description
No description provided
Readme 40 KiB
Languages
Python 85.9%
Dockerfile 14.1%