Skip to content

Commit

Permalink
Merge pull request #1216 from sghill/upgrade-jpi-plugin
Browse files Browse the repository at this point in the history
Upgrade Gradle and jpi plugin
  • Loading branch information
daspilker authored Mar 17, 2020
2 parents a3c1579 + c093be0 commit 2468435
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 9 deletions.
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Mon Jan 07 23:10:24 CET 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=abc10bcedb58806e8654210f96031db541bcd2d6fc3161e81cb0572d6a15e821
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-all.zip
22 changes: 19 additions & 3 deletions gradlew
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
#!/usr/bin/env sh

#
# Copyright 2015 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

##############################################################################
##
## Gradle start up script for UN*X
Expand Down Expand Up @@ -28,7 +44,7 @@ APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m"'
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
Expand Down Expand Up @@ -109,8 +125,8 @@ if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi

# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
# For Cygwin or MSYS, switch paths to Windows format before running java
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
Expand Down
18 changes: 17 additions & 1 deletion gradlew.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem

@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
Expand All @@ -14,7 +30,7 @@ set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m"
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
Expand Down
3 changes: 2 additions & 1 deletion job-dsl-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ buildscript {
}

plugins {
id 'org.jenkins-ci.jpi' version '0.28.1'
id 'org.jenkins-ci.jpi' version '0.38.0'
}

description = 'Jenkins plugin to leverage job-dsl-core to programmatic create jobs from inside Jenkins.'
Expand Down Expand Up @@ -67,6 +67,7 @@ test {
showStandardStreams = true
}
*/
systemProperty 'jenkins.test.noSpaceInTmpDirs', 'true'
}

war {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import org.custommonkey.xmlunit.XMLUnit
import org.junit.Rule
import org.jvnet.hudson.test.JenkinsRule
import org.jvnet.hudson.test.WithoutJenkins
import spock.lang.IgnoreIf
import spock.lang.Specification

import static hudson.model.Result.UNSTABLE
Expand Down Expand Up @@ -882,6 +883,7 @@ class JenkinsJobManagementSpec extends Specification {
}
@SuppressWarnings('BusyWait')
@IgnoreIf({ os.isWindows() })
def 'queue job'() {
setup:
FreeStyleProject project = jenkinsRule.createProject(FreeStyleProject, 'project')
Expand All @@ -894,7 +896,6 @@ class JenkinsJobManagementSpec extends Specification {
when:
jobManagement.queueJob(project.name)
jenkinsRule.instance.queue.items.each { it.future.get() }
while (project.builds.lastBuild == null) {
Thread.sleep(100)
}
Expand All @@ -908,14 +909,14 @@ class JenkinsJobManagementSpec extends Specification {
}
@SuppressWarnings('BusyWait')
@IgnoreIf({ os.isWindows() })
def 'queue job without build'() {
setup:
FreeStyleProject project = jenkinsRule.createProject(FreeStyleProject, 'project')
jenkinsRule.instance.quietPeriod = 0
when:
testJobManagement.queueJob(project.name)
jenkinsRule.instance.queue.items.each { it.future.get() }
while (project.builds.lastBuild == null) {
Thread.sleep(100)
}
Expand Down

0 comments on commit 2468435

Please sign in to comment.