Telegram bot for running Jenkins jobs
MIT License
Jenkins-telegram-chatops
is a Telegram bot written using Spring Boot which handing
able to show list of Jenkins jobs and run specific job.
/jobs
commandYou can build application using following command:
./gradlew clean build
JDK >= 11
You can run unit tests using following command:
./grdlew test
You can run mutation tests using following command:
./grdlew pitest
You will be able to find pitest report in build/reports/pitest/
folder.
After the build you will get fully executable jar archive
You can run application using following commands:
java -jar jenkins-telegram-chatops.jar
or
./jenkins-telegram-chatops.jar
According to Spring Docs you can override default application properties by put custom application.properties file in one of the following locations:
/config
subdirectory of the current directoryWhen Jenkins job run via REST API jenkins-telegram-chatops
waits until it finished.
There are three steps :
Each steps performs REST API calls in maxAttempts
attempts with some delay
.
You can access prometheus metrics by url:
{host:port}/actuator/prometheus
Integration with Vault
was made using spring-cloud-vault.
By default jenkins-telegram-chatops
integration with Vault
disabled.
To enable integration with Vault
pass following arguments to jenkins-telegram-chatops
run command:
java -jar jenkins-telegram-chatops.jar --spring.cloud.vault.enabled=true --spring.cloud.vault.uri=<your vault uri>
--spring.cloud.vault.token=<your vault token> --spring.cloud.vault.kv.application-name=<vault application name>
Feel free to contribute. New feature proposals and bug fixes should be submitted as GitHub pull requests. Fork the repository on GitHub, prepare your change on your forked copy, and submit a pull request.
IMPORTANT!
Before contributing please read about Conventional Commits / Conventional Commits RU