Coder Social home page Coder Social logo

jenkinsci / ownership-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from synopsys-arc-oss/ownership-plugin

26.0 8.0 39.0 3.61 MB

Jenkins plugin. Provides explicit ownership of jobs and agents

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

License: MIT License

Java 97.47% HTML 1.59% CSS 0.20% Groovy 0.74%
jenkins plugin jenkins-plugin ownership adopt-this-plugin security ui jenkins-security

ownership-plugin's Introduction

Ownership Plugin for Jenkins

Join the chat at https://gitter.im/jenkinsci/ownership-plugin Jenkins Plugin GitHub release Jenkins Plugin Installs

This plugin provides an ownership engine for Jenkins automation server.

Supported features

  • Ownership management for jobs, folders, runs and nodes (Summary boxes, ListView columns, etc.)
  • Injection of ownership variables into the build environment
  • Easy MailTo links for "Contact owners" and "Contact admins" with pre-formatted messages
  • Ownership-Based Security (Role Strategy, Job Restrictions, Authorize Project, etc.)
  • Integration with Jenkins Pipeline
  • Ownership Filter for List Views

Documentation

Examples

Below you can find several Ownership Plugin UI examples.

Ownership Info Summary box:

Ownership Summary box

Ownership Column:

Ownership Column

Plugin Integrations

Ownership Plugin provides integration with multiple Jenkins plugins:

The plugin also contributes extension points, which can be used by other plugins.

License

MIT License

Changelog

See GitHub releases for recent releases. Changelog for 0.12.1 and older versions is available here.

ownership-plugin's People

Contributors

cpuydebois-alptis avatar dwnusbaum avatar imgbotapp avatar jcoste-orange avatar jsoref avatar ksenia-nenasheva avatar notmyfault avatar oleg-nenashev avatar olivergondza avatar refortin-cvs avatar timja avatar vlatombe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ownership-plugin's Issues

Exception on save Configure specific access rights

Jenkins (2.281) + Ownership Plugin (0.13) on Windows Server 2016
Role based authentication is used
Click Configure specific access rights -> Use item-specific security -> Save
The attached exception occurs:
Caught unhandled exception.txt

Caught unhandled exception with ID 6744eb32-e605-4309-ab36-94154f732cf5
java.io.IOException: Ownership is not configured for hudson.model.FreeStyleProject@630b125f[Restricted/SBHasp]
	at com.synopsys.arc.jenkins.plugins.ownership.jobs.JobOwnerHelper.setProjectSpecificSecurity(JobOwnerHelper.java:172)
	at com.synopsys.arc.jenkins.plugins.ownership.jobs.JobOwnerJobAction.doProjectSpecificSecuritySubmit(JobOwnerJobAction.java:146)
	at java.lang.invoke.MethodHandle.invokeWithArguments(Unknown Source)
	at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)
	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212)
	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145)
	at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:536)
	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:766)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:898)
	at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:457)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:766)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:898)
	at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:281)
	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:766)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:898)
	at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:281)
	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:766)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:898)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:694)
	at org.kohsuke.stapler.Stapler.service(Stapler.java:240)

Duplicate class definition for OwnershipGlobalVariableImpl

Hi,
I'm using the plugin in a Declarative Pipeline. I access the job owners in two different stages, in a normal build stage and in the cleanup stage.
Unfortunately I now sometimes get the following error:

java.lang.LinkageError: loader (instance of  org/jenkinsci/plugins/workflow/cps/CpsGroovyShell$CleanGroovyClassLoader): attempted  duplicate class definition for name: "org/jenkinsci/plugins/ownership/model/OwnershipGlobalVariableImpl"

I don't think it has something to do with it, but the problem appeared only (?) after introducing the feature of sequential stages. However, the ownership plugin is only accessed within one of the two stages blocks.

Below you find the functions that I'm using in a custom step of my shared library. This code is accessed two times, in the normal stage and in the cleanup stage:

  • ownership.job.ownershipEnabled
  • ownership.job.primaryOwnerEmail
  • ownership.job.secondaryOwnerEmails

I'm using version 0.12.1 of the plugin.

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.