Coder Social home page Coder Social logo

devc007 / favorite-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jenkinsci/favorite-plugin

0.0 0.0 0.0 180 KB

Jenkins favorite plugin

Home Page: https://plugins.jenkins.io/favorite/

License: MIT License

JavaScript 2.59% Java 97.32% CSS 0.10%

favorite-plugin's Introduction

Jenkins Favorite Plugin

This plugin allows you to mark a job a favorite.This is controlled via a list view column you need to add to a view. You can then click on a star to favorite or unfavorite a job. There is also a job filter to allow you to create a view that only shows your favorites.

Precaution

Older versions of this plugin may not be safe to use. Please review the following warnings before using an older version:

Configuration

It is recommended you change your default view to either one you create, or follow the directions in Editing or Replacing the All View to allow the Favorite column to show up. Once you have the Favorite column, it will show a star that logged in users will be able to click to make a favorite. You can also add another view, and apply the "Favorites Filter" to show favorites only in that view.

Theme Developer Notice

UI Files:

You can subscribe to the fav-icon change event:

window.dispatchEvent(new CustomEvent('favorite-plugin-icon-change', {
  transition: "active-to-inactive",
  job: job
}));

Development

Prerequisites

You need the following tools installed on your system.

Build

Build the target/favorite.hpi plugin file with the mvn package command.

Run

Startup Jenkins with the Plugin.

mvn clean package hpi:run -DskipTests -Djenkins.version=2.32

Now go to http://localhost:8080/jenkins and test the Plugin. You might need to update plugins via GUI.

Remember to clean the work dir if something strange is happening, like plugin is not reloaded.

rm -rf work/*

Pre Release Tests

Testcase 1: Favorite Column on Job List Page

  • You are on the Job List Page and have created at least one Build Job.
  • On the right a column 'Fav' needs to show up and show a grey star for the job.
  • With a click on the grey star the star turns golden and the job is added as favorite.
  • Preview:
    • testcase-1-favorite-column

Testcase 2: Favorite Entries on User Config Page

  • On the Jenkins Start Page click on the small arrow right to your username in the top right corner.
  • In the appearing dropdown click on configure.
  • When scrolling down to 'Favorites' section you will see all your favorites.
  • When clicking the golden star you can remove a job as favorite.
  • Preview:
    • testcase-2-favorite-config

Changelog

For recent versions, see GitHub Releases

For versions 2.3.2 and older, see CHANGELOG.md

License

Licensed under MIT License

Author

Larry Shatzer

favorite-plugin's People

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.