Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Changing mechanism
Jim Van Fleet committed May 3, 2017
1 parent 6eb34c7 commit 91697b0
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/edu/internet2/jenkins/DockerBuild.groovy
@@ -1,15 +1,17 @@
package edu.internet2.jenkins;

class DockerBuild implements Serializable {
def steps
def script
def env
def config
DockerBuild(env, config){
DockerBuild(script, env, config){
this.script = script
this.env = env
this.config = config
}

def envDebug() {
script.echo "this works"
env.getEnvironment().toString()
}

2 changes: 1 addition & 1 deletion vars/buildDocker.groovy
@@ -1,7 +1,7 @@
import edu.internet2.jenkins.DockerBuild

def call(env){
build = new DockerBuild(env, readFile('common.bash'))
build = new DockerBuild(this, env, readFile('common.bash'))
echo build.maintainer()
echo build.imagename()
echo build.tag()

0 comments on commit 91697b0

Please sign in to comment.