Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use latest versions of dependencies #307

Merged
merged 60 commits into from
Jan 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
fae2518
Use latest versions
carlossg Apr 7, 2018
b74421b
Remove versions from properties
carlossg Apr 7, 2018
cec0040
Use latest versions
carlossg May 18, 2018
187ba1a
Merge branch 'master' into versions
carlossg May 21, 2018
ca89536
Logs are no longer printed to build log
carlossg May 21, 2018
3bbe2cb
Merge branch 'master' into versions
carlossg May 25, 2018
7b7f447
Use latest versions
carlossg May 25, 2018
51357b3
Merge branch 'master' into versions
carlossg May 29, 2018
9ac218e
Remove httpclient dependency
carlossg May 30, 2018
cbcd37c
Update versions
carlossg May 30, 2018
0bc6384
Merge branch 'master' into versions
carlossg Jun 7, 2018
504ca5f
Update versions
carlossg Jun 7, 2018
78af128
Merge branch 'master' into versions
carlossg Jun 13, 2018
19a676e
Update versions
carlossg Jun 13, 2018
4d7d733
Merge branch 'master' into versions
carlossg Jun 19, 2018
fcded3b
Merge branch 'master' into versions
carlossg Jun 22, 2018
246ea1c
Merge branch 'master' into versions
carlossg Jun 26, 2018
0863acd
Update managed versions
carlossg Jun 26, 2018
80c143a
Update versions
carlossg Jul 11, 2018
e7c7ad1
Merge branch 'master' into versions
carlossg Jul 11, 2018
2d6b948
Merge branch 'master' into versions-2
carlossg Jul 11, 2018
9a851c7
Update managed dependencies
carlossg Jul 11, 2018
e3e01f1
Downgrade docker-workflow
carlossg Jul 11, 2018
9a4e9a4
Downgrade kubernetes-client
carlossg Jul 11, 2018
65f6903
Bump core to 2.121.1
carlossg Jul 15, 2018
38674b6
Update jenkins to 2.121.1
carlossg Jul 15, 2018
d56a083
Fix findbugs error
carlossg Jul 15, 2018
540b895
Merge pull request #359 from jenkinsci/jenkins-2.121.1
carlossg Jul 16, 2018
f59e97a
Merge branch 'master' into upgrade
carlossg Jul 16, 2018
5904987
Merge branch 'master' into versions
carlossg Jul 16, 2018
0461b88
Merge branch 'master' into versions
carlossg Jul 16, 2018
ccd878d
Merge branch 'upgrade' into versions
carlossg Jul 16, 2018
33cbe76
Merge branch 'master' into upgrade
carlossg Jul 16, 2018
30b50db
Merge branch 'upgrade' into versions
carlossg Jul 16, 2018
dfad9cb
Merge branch 'master' into versions
carlossg Jul 31, 2018
2ea8cf7
Bump versions
carlossg Jul 31, 2018
02ffe74
Merge branch 'master' into versions
carlossg Aug 9, 2018
6a525bf
Merge branch 'master' into versions
carlossg Aug 9, 2018
7aa6a3f
Merge branch 'master' into versions
carlossg Aug 30, 2018
a6f1765
Add test assertion debugging
carlossg Aug 30, 2018
fd2806b
Fix docker test with latest docker-workflow
carlossg Aug 30, 2018
c42f60e
erge branch 'master' into versions
carlossg Sep 4, 2018
af7cd77
Merge branch 'master' into versions
carlossg Oct 31, 2018
9257072
Merge branch 'master' into versions
carlossg Nov 22, 2018
1811ad0
Update versions
carlossg Nov 22, 2018
e8450a2
Remove duplicated dependency
carlossg Nov 23, 2018
ac4f74f
Check for nulls in agent computer
carlossg Nov 24, 2018
8151fe0
Merge branch 'master' into versions
carlossg Dec 17, 2018
12a6f0b
Bump parent pom and jenkins version
carlossg Dec 17, 2018
67288fd
Merge branch 'master' into versions
carlossg Dec 18, 2018
966c33e
Merge branch 'master' into versions
carlossg Jan 1, 2019
55ca320
Increase logging
carlossg Jan 2, 2019
ac5a93b
[JENKINS-55284] Roll back git-client to 2.7.5
carlossg Jan 3, 2019
6737883
Revert "Increase logging"
carlossg Jan 4, 2019
21a2417
Do not rerun failed tests
carlossg Jan 4, 2019
acb956b
Remove duplicated createSecret method
carlossg Jan 4, 2019
74b219f
Create secrets in the correct namespace
carlossg Jan 4, 2019
23509ad
Merge branch 'master' into versions
carlossg Jan 4, 2019
278d431
Revert Jenkins to 2.138.4
carlossg Jan 4, 2019
2792a49
Force kubernetes-client dependency to match jackson2-api plugin version
carlossg Jan 7, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 41 additions & 45 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,118 +67,117 @@
</exclusions>
</dependency>

<!-- required plugins -->
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>jackson2-api</artifactId>
<version>2.7.3</version>
<version>2.9.7.1</version>
carlossg marked this conversation as resolved.
Show resolved Hide resolved
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>apache-httpcomponents-client-4-api</artifactId>
<version>4.5.3-2.0</version>
<version>4.5.5-3.0</version>
</dependency>
<dependency>
<groupId>org.jenkinsci.plugins</groupId>
<artifactId>kubernetes-credentials</artifactId>
<version>0.3.0</version>
<version>0.4.0</version>
</dependency>

<dependency> <!-- Requires Permission -->
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>cloudbees-folder</artifactId>
<version>5.18</version>
<version>6.7</version>
</dependency>

<dependency> <!-- OnceRetentionStrategy -->
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>durable-task</artifactId>
<version>1.16</version>
<version>1.28</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>variant</artifactId>
<version>1.0</version>
<version>1.1</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-step-api</artifactId>
<version>2.14</version>
<version>2.16</version>
</dependency>
<dependency> <!-- DeclarativeAgent -->
<groupId>org.jenkinsci.plugins</groupId>
<artifactId>pipeline-model-extensions</artifactId>
<version>1.3.1</version>
<version>1.3.2</version>
<optional>true</optional>
</dependency>

<!-- for testing -->
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-job</artifactId>
<version>2.15</version>
<version>2.29</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-basic-steps</artifactId>
<version>2.6</version>
<version>2.12</version>
<scope>test</scope>
</dependency>
<dependency> <!-- StepConfigTester -->
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-step-api</artifactId>
<version>2.11</version>
<version>2.16</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-support</artifactId>
<version>2.17</version>
<version>2.22</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-durable-task-step</artifactId>
<version>2.15</version>
<version>2.26</version>
<scope>test</scope>
</dependency>
<dependency> <!-- SemaphoreStep -->
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-support</artifactId>
<version>2.17</version>
<version>2.22</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-scm-step</artifactId>
<version>2.6</version>
<version>2.7</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>scm-api</artifactId>
<version>2.2.6</version>
<version>2.3.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkinsci.plugins</groupId>
<artifactId>pipeline-model-definition</artifactId>
<version>1.3.1</version>
<version>1.3.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-api</artifactId>
<version>2.25</version>
<version>2.33</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-cps</artifactId>
<version>2.46</version>
<version>2.60</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -189,90 +188,81 @@
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>git</artifactId>
<version>3.7.0</version>
<version>3.9.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>git</artifactId>
<version>3.7.0</version>
<version>3.9.1</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>scm-api</artifactId>
<version>2.2.6</version>
<version>2.3.0</version>
<scope>test</scope>
<classifier>tests</classifier>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-scm-step</artifactId>
<version>2.4</version>
<scope>test</scope>
<classifier>tests</classifier>
</dependency>

<!-- for ContainerExecDecoratorPipelineTest -->
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>ssh-agent</artifactId>
<version>1.15</version>
<version>1.17</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>bouncycastle-api</artifactId>
<version>2.16.2</version>
<version>2.17</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>docker-workflow</artifactId>
<version>1.15</version>
<version>1.17</version>
<scope>test</scope>
</dependency>
</dependencies>


<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>credentials</artifactId>
<version>2.1.16</version>
<version>2.1.18</version>
</dependency>

<!-- just to fix enforcer RequireUpperBoundDeps -->
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>script-security</artifactId>
<version>1.42</version>
<version>1.48</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>git-client</artifactId>
<version>2.7.0</version>
<version>2.7.5</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>credentials-binding</artifactId>
<version>1.14</version>
<version>1.17</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>structs</artifactId>
<version>1.14</version>
<version>1.17</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>ssh-credentials</artifactId>
<version>1.13</version>
<version>1.14</version>
</dependency>
<dependency>
<groupId>org.apache.sshd</groupId>
<artifactId>sshd-core</artifactId>
<version>1.7.0</version>
<version>2.1.0</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci</groupId>
Expand All @@ -282,18 +272,24 @@
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>mailer</artifactId>
<version>1.20</version>
<version>1.22</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>junit</artifactId>
<version>1.3</version>
<version>1.26.1</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.7</version>
</dependency>
<!-- force kubernetes-client dependency to match jackson2-api plugin version -->
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-yaml</artifactId>
<version>2.9.7</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void sshagent() throws Exception {
@Test
public void docker() throws Exception {
StandardUsernamePasswordCredentials credentials = new UsernamePasswordCredentialsImpl(CredentialsScope.GLOBAL,
"ContainerExecDecoratorPipelineTest-docker", "bob", "username", "secret_password");
"ContainerExecDecoratorPipelineTest-docker", "bob", "myusername", "secret_password");
SystemCredentialsProvider.getInstance().getCredentials().add(credentials);

WorkflowJob p = r.jenkins.createProject(WorkflowJob.class, "docker");
Expand All @@ -87,7 +87,8 @@ public void docker() throws Exception {
WorkflowRun b = p.scheduleBuild2(0).waitForStart();
assertNotNull(b);
r.waitForCompletion(b);
r.assertLogContains("Wrote authentication to /home/jenkins/.dockercfg", b);
// docker login will fail but we can check that it runs the correct command
r.assertLogContains("Executing command: \"docker\" \"login\" \"-u\" \"myusername\" \"-p\" ******** \"https://index.docker.io/v1/\"", b);
// check that we don't accidentally start exporting sensitive info to the build log
r.assertLogNotContains("secret_password", b);
// check that we don't accidentally start exporting sensitive info to the Jenkins log
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public void runInPod() throws Exception {
Pod pod = pods.getItems().get(0);
LOGGER.log(Level.INFO, "One pod found: {0}", pod);
assertThat(pod.getMetadata().getLabels(), hasEntry("jenkins", "slave"));
assertThat(pod.getMetadata().getLabels(), hasEntry("jenkins/" + name.getMethodName(), "true"));
assertThat("Pod labels are wrong: " + pod, pod.getMetadata().getLabels(), hasEntry("jenkins/" + name.getMethodName(), "true"));

r.assertBuildStatusSuccess(r.waitForCompletion(b));
r.assertLogContains("script file contents: ", b);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ public void getContainerLogWithRestart() throws Exception {
story.then(r -> {
WorkflowRun b = r.jenkins.getItemByFullName("p", WorkflowJob.class).getBuildByNumber(1);
r.assertBuildStatusSuccess(r.waitForCompletion(b));
r.assertLogContains("INFO: Handshaking", b);
r.assertLogContains("INFO: Connected", b);
r.assertLogContains("[Pipeline] containerLog", b);
r.assertLogContains("[Pipeline] End of Pipeline", b);
});
}
}