Skip to content

Commit

Permalink
Bump JobDSL dependency to 1.50; fix unit tests by adding a test-only …
Browse files Browse the repository at this point in the history
…ctor; fix compilation.
  • Loading branch information
realdadfish authored and ghale committed Nov 30, 2016
1 parent 203020d commit ab117d5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@ dependencies {
'xmlunit:xmlunit:1.3'
)

compile('org.jenkins-ci:version-number:1.1')

compile('org.codehaus.groovy.modules.http-builder:http-builder:0.7.2') {
exclude(module: 'groovy')
}

compile('org.jenkins-ci.plugins:job-dsl-core:1.46') {
compile('org.jenkins-ci.plugins:job-dsl-core:1.50') {
exclude(module: 'groovy-all')
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@ class MapJobManagement extends AbstractJobManagement {
void requireMinimumPluginVersion(String pluginShortName, String version, boolean failIfMissing) {
}

@Override
VersionNumber getPluginVersion(String pluginShortName){
return null
}

@Override
Integer getVSphereCloudHash(String name){
return null
Expand Down Expand Up @@ -124,11 +119,6 @@ class MapJobManagement extends AbstractJobManagement {
@Override
void requireMinimumCoreVersion(String version) { }

@Override
VersionNumber getJenkinsVersion() {
return null
}

@Override
Set<String> getPermissions(String authorizationMatrixPropertyClassName) {
return null
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.terrafolio.gradle.plugins.jenkins.service

import com.google.common.annotations.VisibleForTesting
import groovy.xml.StreamingMarkupBuilder
import groovyx.net.http.HttpResponseException
import groovyx.net.http.RESTClient
Expand All @@ -22,6 +23,10 @@ class JenkinsRESTServiceImpl implements JenkinsService {
this.url = url
}

@VisibleForTesting
public JenkinsRESTServiceImpl() {
}

def getRestClient() {
if (client == null) {
client = new RESTClient(url)
Expand Down

0 comments on commit ab117d5

Please sign in to comment.