Skip to content

Commit 4ae6f93

Browse files
committed
update copyright; added package choice parameter; added download packages build step; reorganized Granite Client execution pattern
1 parent 5d3cc20 commit 4ae6f93

File tree

63 files changed

+2985
-273
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+2985
-273
lines changed

pom.xml

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
<!--
2+
~ This is free and unencumbered software released into the public domain.
3+
~
4+
~ Anyone is free to copy, modify, publish, use, compile, sell, or
5+
~ distribute this software, either in source code form or as a compiled
6+
~ binary, for any purpose, commercial or non-commercial, and by any
7+
~ means.
8+
~
9+
~ In jurisdictions that recognize copyright laws, the author or authors
10+
~ of this software dedicate any and all copyright interest in the
11+
~ software to the public domain. We make this dedication for the benefit
12+
~ of the public at large and to the detriment of our heirs and
13+
~ successors. We intend this dedication to be an overt act of
14+
~ relinquishment in perpetuity of all present and future rights to this
15+
~ software under copyright law.
16+
~
17+
~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18+
~ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19+
~ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20+
~ IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
21+
~ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
22+
~ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23+
~ OTHER DEALINGS IN THE SOFTWARE.
24+
~
25+
~ For more information, please refer to <http://unlicense.org/>
26+
-->
27+
128
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
229
<modelVersion>4.0.0</modelVersion>
330
<parent>
@@ -46,20 +73,26 @@
4673
</dependency>
4774

4875
<dependency>
49-
<groupId>net.adamcin.sshkey</groupId>
50-
<artifactId>sshkey-api</artifactId>
76+
<groupId>net.adamcin.httpsig</groupId>
77+
<artifactId>httpsig-api</artifactId>
78+
<version>0.5.0-SNAPSHOT</version>
79+
</dependency>
80+
81+
<dependency>
82+
<groupId>net.adamcin.httpsig</groupId>
83+
<artifactId>httpsig-helpers</artifactId>
5184
<version>0.5.0-SNAPSHOT</version>
5285
</dependency>
5386

5487
<dependency>
55-
<groupId>net.adamcin.sshkey</groupId>
56-
<artifactId>sshkey-clientauth</artifactId>
88+
<groupId>net.adamcin.httpsig</groupId>
89+
<artifactId>httpsig-bouncycastle</artifactId>
5790
<version>0.5.0-SNAPSHOT</version>
5891
</dependency>
5992

6093
<dependency>
61-
<groupId>net.adamcin.sshkey</groupId>
62-
<artifactId>sshkey-bouncycastle</artifactId>
94+
<groupId>net.adamcin.sling</groupId>
95+
<artifactId>net.adamcin.sling.auth.httpsig</artifactId>
6396
<version>0.5.0-SNAPSHOT</version>
6497
</dependency>
6598

src/main/java/net/adamcin/jenkins/granite/AHCFactory.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
/*
2+
* This is free and unencumbered software released into the public domain.
3+
*
4+
* Anyone is free to copy, modify, publish, use, compile, sell, or
5+
* distribute this software, either in source code form or as a compiled
6+
* binary, for any purpose, commercial or non-commercial, and by any
7+
* means.
8+
*
9+
* In jurisdictions that recognize copyright laws, the author or authors
10+
* of this software dedicate any and all copyright interest in the
11+
* software to the public domain. We make this dedication for the benefit
12+
* of the public at large and to the detriment of our heirs and
13+
* successors. We intend this dedication to be an overt act of
14+
* relinquishment in perpetuity of all present and future rights to this
15+
* software under copyright law.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20+
* IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
21+
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
22+
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23+
* OTHER DEALINGS IN THE SOFTWARE.
24+
*
25+
* For more information, please refer to <http://unlicense.org/>
26+
*/
27+
128
package net.adamcin.jenkins.granite;
229

330
import com.ning.http.client.AsyncHttpClient;
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
* This is free and unencumbered software released into the public domain.
3+
*
4+
* Anyone is free to copy, modify, publish, use, compile, sell, or
5+
* distribute this software, either in source code form or as a compiled
6+
* binary, for any purpose, commercial or non-commercial, and by any
7+
* means.
8+
*
9+
* In jurisdictions that recognize copyright laws, the author or authors
10+
* of this software dedicate any and all copyright interest in the
11+
* software to the public domain. We make this dedication for the benefit
12+
* of the public at large and to the detriment of our heirs and
13+
* successors. We intend this dedication to be an overt act of
14+
* relinquishment in perpetuity of all present and future rights to this
15+
* software under copyright law.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20+
* IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
21+
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
22+
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23+
* OTHER DEALINGS IN THE SOFTWARE.
24+
*
25+
* For more information, please refer to <http://unlicense.org/>
26+
*/
27+
28+
package net.adamcin.jenkins.granite;
29+
30+
import hudson.FilePath;
31+
import hudson.model.TaskListener;
32+
33+
/**
34+
*/
35+
public abstract class AbstractClientFileCallable<T> implements FilePath.FileCallable<T> {
36+
37+
protected final GraniteClientConfig clientConfig;
38+
protected final TaskListener listener;
39+
40+
protected AbstractClientFileCallable(GraniteClientConfig clientConfig, TaskListener listener) {
41+
this.clientConfig = clientConfig;
42+
this.listener = listener;
43+
}
44+
45+
}

src/main/java/net/adamcin/jenkins/granite/DefaultPackIdFilter.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
/*
2+
* This is free and unencumbered software released into the public domain.
3+
*
4+
* Anyone is free to copy, modify, publish, use, compile, sell, or
5+
* distribute this software, either in source code form or as a compiled
6+
* binary, for any purpose, commercial or non-commercial, and by any
7+
* means.
8+
*
9+
* In jurisdictions that recognize copyright laws, the author or authors
10+
* of this software dedicate any and all copyright interest in the
11+
* software to the public domain. We make this dedication for the benefit
12+
* of the public at large and to the detriment of our heirs and
13+
* successors. We intend this dedication to be an overt act of
14+
* relinquishment in perpetuity of all present and future rights to this
15+
* software under copyright law.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20+
* IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
21+
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
22+
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23+
* OTHER DEALINGS IN THE SOFTWARE.
24+
*
25+
* For more information, please refer to <http://unlicense.org/>
26+
*/
27+
128
package net.adamcin.jenkins.granite;
229

330
import net.adamcin.granite.client.packman.PackId;

0 commit comments

Comments
 (0)