Skip to content

Commit

Permalink
removed anything that has been deprecated in 1.62
Browse files Browse the repository at this point in the history
  • Loading branch information
daspilker committed Jan 31, 2018
1 parent de3fee2 commit 001e245
Show file tree
Hide file tree
Showing 27 changed files with 5 additions and 983 deletions.
1 change: 1 addition & 0 deletions docs/Home.md
Expand Up @@ -57,6 +57,7 @@ Browse the Jenkins issue tracker to see any [open issues](https://issues.jenkins
* Support for older versions of the
[Pipeline Groovy Plugin](https://wiki.jenkins.io/display/JENKINS/Pipeline+Groovy+Plugin) is deprecated, see
[Migration](Migration#migrating-to-168)
* Removed anything that has been deprecated in 1.62, see [Migration](Migration#migrating-to-162)
* 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

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

@@ -1,7 +1,6 @@
package javaposse.jobdsl.dsl

import javaposse.jobdsl.dsl.helpers.ConfigFilesContext
import javaposse.jobdsl.dsl.jobs.BuildFlowJob
import javaposse.jobdsl.dsl.jobs.FreeStyleJob
import javaposse.jobdsl.dsl.jobs.IvyJob
import javaposse.jobdsl.dsl.jobs.MatrixJob
Expand Down Expand Up @@ -43,25 +42,6 @@ interface DslFactory extends ViewFactory {
*/
FreeStyleJob freeStyleJob(String name, @DslContext(FreeStyleJob) Closure closure)

/**
* Creates or update a job for managing Jenkins jobs orchestration using a dedicated DSL.
*
* @since 1.30
* @see #buildFlowJob(java.lang.String, groovy.lang.Closure)
*/
@RequiresPlugin(id = 'build-flow-plugin', failIfMissing = true)
@Deprecated
BuildFlowJob buildFlowJob(String name)

/**
* Creates or update a job for managing Jenkins jobs orchestration using a dedicated DSL.
*
* @since 1.31
*/
@RequiresPlugin(id = 'build-flow-plugin', failIfMissing = true)
@Deprecated
BuildFlowJob buildFlowJob(String name, @DslContext(BuildFlowJob) Closure closure)

/**
* Creates or updates a job to build an Ivy project.
*
Expand Down
10 changes: 0 additions & 10 deletions job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/JobParent.groovy
Expand Up @@ -2,7 +2,6 @@ package javaposse.jobdsl.dsl

import groovy.transform.ThreadInterrupt
import javaposse.jobdsl.dsl.helpers.ConfigFilesContext
import javaposse.jobdsl.dsl.jobs.BuildFlowJob
import javaposse.jobdsl.dsl.jobs.FreeStyleJob
import javaposse.jobdsl.dsl.jobs.IvyJob
import javaposse.jobdsl.dsl.jobs.MatrixJob
Expand Down Expand Up @@ -47,15 +46,6 @@ abstract class JobParent extends Script implements DslFactory {
processItem(name, FreeStyleJob, closure)
}

/**
* @since 1.30
*/
@Override
@Deprecated
BuildFlowJob buildFlowJob(String name, @DslContext(BuildFlowJob) Closure closure = null) {
processItem(name, BuildFlowJob, closure)
}

/**
* @since 1.38
*/
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Expand Up @@ -8,7 +8,6 @@ import javaposse.jobdsl.dsl.JobManagement
import javaposse.jobdsl.dsl.Preconditions
import javaposse.jobdsl.dsl.RequiresPlugin
import javaposse.jobdsl.dsl.AbstractExtensibleContext
import javaposse.jobdsl.dsl.helpers.common.ArtifactDeployerContext
import javaposse.jobdsl.dsl.helpers.common.PublishOverSshContext
import javaposse.jobdsl.dsl.jobs.MatrixJob

Expand Down Expand Up @@ -1504,40 +1503,6 @@ class PublisherContext extends AbstractExtensibleContext {
}
}

/**
* Deploys artifacts from the build workspace to remote locations.
*
* @since 1.39
*/
@RequiresPlugin(id = 'artifactdeployer', minimumVersion = '0.33')
@Deprecated
void artifactDeployer(@DslContext(ArtifactDeployerPublisherContext) Closure closure) {
ArtifactDeployerPublisherContext context = new ArtifactDeployerPublisherContext()
ContextHelper.executeInContext(closure, context)

publisherNodes << new NodeBuilder().'org.jenkinsci.plugins.artifactdeployer.ArtifactDeployerPublisher' {
entries {
context.entries.each { ArtifactDeployerContext entry ->
'org.jenkinsci.plugins.artifactdeployer.ArtifactDeployerEntry' {
includes(entry.includes ?: '')
basedir(entry.baseDir ?: '')
excludes(entry.excludes ?: '')
remote(entry.remoteFileLocation ?: '')
flatten(entry.flatten)
deleteRemote(entry.cleanUp)
deleteRemoteArtifacts(entry.deleteRemoteArtifacts)
deleteRemoteArtifactsByScript(entry.deleteRemoteArtifactsByScript as boolean)
if (entry.deleteRemoteArtifactsByScript) {
groovyExpression(entry.deleteRemoteArtifactsByScript)
}
failNoFilesDeploy(entry.failIfNoFiles)
}
}
}
deployEvenBuildFail(context.deployIfFailed)
}
}

/**
* Generates trend report for SLOCCount and cloc.
*
Expand All @@ -1557,24 +1522,6 @@ class PublisherContext extends AbstractExtensibleContext {
}
}

/**
* Performs subversion tagging (technically speaking svn copy) on successful builds.
*
* @since 1.41
*/
@RequiresPlugin(id = 'svn-tag', minimumVersion = '1.18')
@Deprecated
void svnTag(@DslContext(SubversionTagContext) Closure closure) {
SubversionTagContext context = new SubversionTagContext()
ContextHelper.executeInContext(closure, context)

publisherNodes << new NodeBuilder().'hudson.plugins.svn__tag.SvnTagPublisher' {
tagBaseURL(context.baseUrl)
tagComment(context.comment)
tagDeleteComment(context.deleteComment)
}
}

/**
* Publishes Cucumber results as HTML reports.
*
Expand Down

This file was deleted.

0 comments on commit 001e245

Please sign in to comment.