Skip to content

Commit

Permalink
Merge pull request #10 from jenkinsci/security-2630
Browse files Browse the repository at this point in the history
ZENG-253105 Derive RemoteSystemProperties from MasterToSlaveCallable
  • Loading branch information
dave-dresser authored Mar 23, 2022
2 parents 07089e2 + 1697e24 commit 0aff2c3
Showing 1 changed file with 4 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* The MIT License (MIT)
*
* Copyright (c) 2020 Compuware Corporation
* Copyright (c) 2022 Compuware Corporation
*
* 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,
Expand All @@ -16,28 +16,18 @@
*/
package com.compuware.jenkins.zadviser.build;

import hudson.remoting.Callable;
import java.util.Properties;
import org.jenkinsci.remoting.RoleChecker;

import jenkins.security.MasterToSlaveCallable;

/**
* Get remote system properties
*/
public class RemoteSystemProperties implements Callable<Properties, RuntimeException> {
public class RemoteSystemProperties extends MasterToSlaveCallable<Properties, RuntimeException> {

private static final long serialVersionUID = 4501207510446994815L;

public Properties call() {
return System.getProperties();
}

/*
* (non-Javadoc)
*
* @see org.jenkinsci.remoting.RoleSensitive#checkRoles(org.jenkinsci.remoting.RoleChecker)
*/
@Override
public void checkRoles(RoleChecker checker) {
// Implementation required by interface, but not using
}
}

0 comments on commit 0aff2c3

Please # to comment.