Skip to content

Commit

Permalink
Merge pull request #1097 from daspilker/JENKINS-43637
Browse files Browse the repository at this point in the history
Un-deprecated support for the PostBuildScript plugin
  • Loading branch information
daspilker committed Jan 27, 2018
2 parents 465b8b7 + 7e54627 commit ef3a583
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
3 changes: 3 additions & 0 deletions docs/Home.md
Expand Up @@ -29,6 +29,9 @@ Browse the Jenkins issue tracker to see any [open issues](https://issues.jenkins

## Release Notes
* 1.68 (unreleased)
* Un-deprecated support for the
[PostBuildScript Plugin](https://wiki.jenkins-ci.org/display/JENKINS/PostBuildScript+Plugin)
([JENKINS-43637](https://issues.jenkins-ci.org/browse/JENKINS-43637))
* 1.67 (January 26 2018)
* Allow import of Groovy code from the workspace when script security sandbox is enabled
([#1078](https://github.com/jenkinsci/job-dsl-plugin/pull/1078))
Expand Down
6 changes: 0 additions & 6 deletions docs/Migration.md
Expand Up @@ -95,12 +95,6 @@ The [Active Choices Plugin](https://wiki.jenkins-ci.org/display/JENKINS/Active+C
Update Center due to [Security Vulnerabilities](https://jenkins.io/security/advisory/2017-04-10/). As a consequence the
DSL support is [[deprecated|Deprecation-Policy]] and will be removed.

### PostBuildScript Plugin

The [PostBuildScript Plugin](https://wiki.jenkins-ci.org/display/JENKINS/PostBuildScript+Plugin) has been removed from
the Update Center due to [Security Vulnerabilities](https://jenkins.io/security/advisory/2017-04-10/). As a consequence
the DSL support is [[deprecated|Deprecation-Policy]] and will be removed.

### ArtifactDeployer Plugin

The [ArtifactDeployer Plugin](https://wiki.jenkins-ci.org/display/JENKINS/ArtifactDeployer+Plugin) has been removed from
Expand Down
Expand Up @@ -1299,7 +1299,6 @@ class PublisherContext extends AbstractExtensibleContext {
* @since 1.31
*/
@RequiresPlugin(id = 'postbuildscript', minimumVersion = '0.17')
@Deprecated
void postBuildScripts(@DslContext(PostBuildScriptsContext) Closure closure) {
PostBuildScriptsContext context = new PostBuildScriptsContext(jobManagement, item)
ContextHelper.executeInContext(closure, context)
Expand Down
Expand Up @@ -3608,7 +3608,6 @@ class PublisherContextSpec extends Specification {
markBuildUnstable[0].value() == false
}
1 * jobManagement.requireMinimumPluginVersion('postbuildscript', '0.17')
1 * jobManagement.logDeprecationWarning()
}

def 'call post build scripts with all options'() {
Expand All @@ -3633,7 +3632,6 @@ class PublisherContextSpec extends Specification {
markBuildUnstable[0].value() == value
}
1 * jobManagement.requireMinimumPluginVersion('postbuildscript', '0.17')
1 * jobManagement.logDeprecationWarning()

where:
value << [true, false]
Expand All @@ -3659,7 +3657,6 @@ class PublisherContextSpec extends Specification {
executeOn[0].value() == 'BOTH'
}
1 * jobManagement.requireMinimumPluginVersion('postbuildscript', '0.17')
1 * jobManagement.logDeprecationWarning()
}

def 'call post build scripts with all options and matrix job'() {
Expand Down Expand Up @@ -3690,7 +3687,6 @@ class PublisherContextSpec extends Specification {
executeOn[0].value() == mode
}
1 * jobManagement.requireMinimumPluginVersion('postbuildscript', '0.17')
1 * jobManagement.logDeprecationWarning()

where:
mode << ['MATRIX', 'AXES', 'BOTH']
Expand Down

0 comments on commit ef3a583

Please sign in to comment.