Integraciones CI/CD
Descripción general
Agrega notificaciones push y puertas de aprobación a cualquier pipeline CI/CD. Todo sin dependencias y de código abierto.
CLI
Herramienta shell de archivo único. Funciona en cualquier CI/CD, cron job o terminal. Requiere curl y jq.
Instalar
curl -fsSL https://raw.githubusercontent.com/qq418716640/botbell-cli/main/botbell -o /usr/local/bin/botbell
chmod +x /usr/local/bin/botbell
export BOTBELL_TOKEN="bt_your_token"Enviar
botbell send "Deploy succeeded ✅"Puerta de aprobación
botbell approve "Deploy to production?" --timeout 300GitHub Action
Agrega notificaciones y puertas de aprobación de BotBell a cualquier flujo de GitHub.
Notificar resultado de compilación
workflow.yml
- uses: botbell/notify-action@v1
with:
token: ${{ secrets.BOTBELL_TOKEN }}
title: "✅ Build Passed"
message: "#${{ github.run_number }} on ${{ github.ref_name }}"Puerta de aprobación antes del despliegue
workflow.yml
- uses: botbell/notify-action@v1
with:
token: ${{ secrets.BOTBELL_TOKEN }}
mode: approve
message: "Deploy #${{ github.run_number }} to production?"
timeout: "1800"Biblioteca compartida de Jenkins
Integra BotBell en pipelines de Jenkins con dos métodos: notify y approve.
Configuración: Agrega como biblioteca global de pipeline apuntando al repositorio Git.
Jenkinsfile
@Library('botbell') _
pipeline {
agent any
environment {
BOTBELL_TOKEN = credentials('botbell-token')
}
stages {
stage('Deploy Approval') {
steps {
script {
botbell.approve(message: "Deploy to production?")
}
}
}
}
post {
success {
script {
botbell.notify(
title: "✅ Deploy Success",
message: "#${BUILD_NUMBER} deployed",
)
}
}
}
}