Skip to content

Commit eb44809

Browse files
committed
Remove dead code from Jenkinsfile, which causes a bug
1 parent 4f40b16 commit eb44809

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/Jenkinsfile.groovy

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
class Jenkinsfile implements Resettable {
22
public static original
3-
public static docker
43
public static defaultNodeName
54
public static repoSlug = null
65
public static instance = new Jenkinsfile()
@@ -56,7 +55,6 @@ class Jenkinsfile implements Resettable {
5655

5756
def static void init(original, Class customizations=null) {
5857
this.original = original
59-
this.docker = original.docker
6058

6159
initializeDefaultPlugins()
6260

@@ -134,7 +132,6 @@ class Jenkinsfile implements Resettable {
134132
instance = new Jenkinsfile()
135133
original = null
136134
defaultNodeName = null
137-
docker = null
138135
pipelineTemplate = null
139136
declarative = false
140137
}

test/AgentNodePluginTest.groovy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ class AgentNodePluginTest {
125125
AgentNodePlugin.withAgentDockerImageOptions(expectedOptions)
126126
def plugin = new AgentNodePlugin()
127127
def original = createOriginalSpy()
128-
original.docker = original
129128

130129
def agentClosure = plugin.addAgent()
131130
agentClosure.delegate = original

0 commit comments

Comments
 (0)