Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[FIXED JENKINS-24243] respecting nonProxySettings
* moved proxy configuration to MavenRepositorySystemSession creation * added intellijfile to gitignore
- Loading branch information
1 parent
15c15f1
commit fe32bb0
Showing
3 changed files
with
74 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ | |
/bin | ||
nb-configuration.xml | ||
nbactions.xml | ||
repository-connector.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/test/java/org/jvnet/hudson/plugins/repositoryconnector/aether/AetherTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package org.jvnet.hudson.plugins.repositoryconnector.aether; | ||
|
||
import hudson.model.Cause; | ||
import hudson.model.FreeStyleProject; | ||
import hudson.model.Result; | ||
import hudson.tasks.Shell; | ||
import org.apache.commons.io.FileUtils; | ||
import org.junit.Before; | ||
import org.junit.Test; | ||
import org.jvnet.hudson.plugins.repositoryconnector.Artifact; | ||
import org.jvnet.hudson.plugins.repositoryconnector.ArtifactResolver; | ||
|
||
import java.io.File; | ||
import java.io.PrintStream; | ||
import java.util.Collections; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
|
||
public class AetherTest { | ||
|
||
private Aether sut; | ||
|
||
@Before | ||
public void setup() | ||
{ | ||
sut = new Aether( new File("jenkinstest"), System.out, false ); | ||
} | ||
|
||
@Test | ||
public void convertGivenNonHttpProxySettings() throws Exception { | ||
|
||
String result = sut.convertHudsonNonProxyToJavaNonProxy("localhost\n*.google.com\n\napple.com"); | ||
|
||
assertEquals("New lines should be replaced", result, "localhost|*.google.com|apple.com"); | ||
} | ||
} |