Git Product home page Git Product logo

bytebeats / commits-changelog-env-plugin Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 788 KB

A Jenkins plugin for inserting the commits changelog into the jenkins build environment. Jenkins 打包将最新提交信息通知给钉钉或者飞书机器人.

License: MIT License

Java 46.01% HTML 12.82% Python 41.17%
jenkins jenkins-plugin commits changelog changelog-generator jenkins-build-environment lark-bot dingtalk-robot python-jenkins

commits-changelog-env-plugin's Introduction

commits-changelog-env-plugin

GitHub latest commit GitHub contributors GitHub issues Open Source? Yes! GitHub forks GitHub stars GitHub watchers

README 中文

A Jenkins plugin for inserting the commits changelog into the jenkins build environment.

Jenkins插件, 在构建时通过将提交的更新列表插入 Jenkins 构建环境, 从而实现将提交信息通知给飞书/钉钉机器人.

Online office software like Lark(Feishu)/DingTalk feature notification bots.

Testers want to know what bugs were fixed, what features added, what functions modified or refactored when jenkins building started.

Jenkins build environment supports build task variables like BUILD_NUMBER/BUILD_URL, JOB_NAME/JOB_URL, JENKINS_HOME/JENKINS_URL

But Jenkins do not know commits.

So Inserting commits changelog into build environment is a solution.

How?

Is there any way to generate commits changelog? A Jenkins build plugin ?!

This project is an implementation that a jenkins plugin generates commits changelog and insert it into current build environment.

Where is the jenkins plugin?

here commits-changelog-env-inserter.hpi is.

Can I build my own hpi file?

Of course. Here is how:

  • install maven first, if you haven't. run brew install maven on Terminal, macOS.
  • In root directory of this project, run mvn verify.
  • in /target/, you'll see commits-changelog-env-inserter.hpi is generated.
  • Then in Jenkins, Manage Jenkins -> System Configuration -> Manage Plugins -> Advanced Tab -> Upload Plugin, choose file and then Upload.
  • Then in Jenkins/build tasks, Configure -> Build Environment, you'll see Add Commits Changelog Information to the Build Environment, check it and configure as help described.
  • If you run into anything about maven configure, Google it!
  • If you run into anything about Jenkins permissions, Consult your manager!

How to send the commit changelog to Lark bot? 如何将提交记录发送给飞书机器人?

Check lark_commits_changelog_bot.py

Visual Effect

Changelog Plugin Changelog Plugin Changelog Plugin Lark_Bot

Stargazers over time

Stargazers over time

Github Stars Sparklines

Sparkline

Contributors

Contributors over time

MIT License

Copyright (c) 2022 Chen Pan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

commits-changelog-env-plugin's People

Contributors

bytebeats avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

commits-changelog-env-plugin's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.