Skip to content

Commit

Permalink
Merge pull request #21 from jglick/FolderConfigHistoryActionFactory-J…
Browse files Browse the repository at this point in the history
…ENKINS-20990

[JENKINS-20990] Folder integration
  • Loading branch information
Stefan Brausch committed Jan 21, 2014
2 parents b4ec56a + ecdbece commit 2a78757
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pom.xml
Expand Up @@ -113,6 +113,12 @@
<version>1.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>cloudbees-folder</artifactId>
<version>4.1</version>
<optional>true</optional>
</dependency>
</dependencies>
<build>
<plugins>
Expand Down
@@ -0,0 +1,41 @@
/*
* The MIT License
*
* Copyright 2013 CloudBees.
*
* 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.
*/

package hudson.plugins.jobConfigHistory;

import com.cloudbees.hudson.plugins.folder.Folder;
import com.cloudbees.hudson.plugins.folder.TransientFolderActionFactory;
import hudson.Extension;
import hudson.model.Action;
import java.util.Collection;
import java.util.Collections;

@Extension(optional=true)
public class FolderConfigHistoryActionFactory extends TransientFolderActionFactory {

@Override public Collection<? extends Action> createFor(Folder target) {
return Collections.singleton(new JobConfigHistoryProjectAction(target));
}

}

0 comments on commit 2a78757

Please sign in to comment.