Skip to content

Commit

Permalink
builder: Keep track of environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Wallbraker committed May 26, 2018
1 parent 0404ebb commit 97ebd8e
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion scripts/guru.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import org.volt_lang.Builder
import org.volt_lang.RepoConf

def b = new Builder(steps, null)
def b = new Builder(steps, null, env)

stage('Setup') {
b.setupGuru([
Expand Down
2 changes: 1 addition & 1 deletion scripts/volt.groovy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@Library('volt-build')
import org.volt_lang.Builder

def b = new Builder(steps, null)
def b = new Builder(steps, null, env)

stage('Setup') {
b.setupVolta()
Expand Down
6 changes: 5 additions & 1 deletion src/org/volt_lang/Builder.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ class Builder implements Serializable
/// The scm object if any.
def scm

/// The environment
def env

/// Are we doing a full build aka Volta
def isVolta

Expand All @@ -38,10 +41,11 @@ class Builder implements Serializable
new NodeConf('x86_64', 'msvc', true, 'ubuntu-16.04-x86_64'),
]

Builder(dsl, scm)
Builder(dsl, scm, env)
{
this.dsl = dsl
this.scm = scm
this.env = env
}


Expand Down
2 changes: 1 addition & 1 deletion vars/voltBuildExe.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import org.volt_lang.Builder


def call(folder) {
def b = new Builder(steps, scm)
def b = new Builder(steps, scm, env)

stage('Setup') {
b.setupExe(folder)
Expand Down
2 changes: 1 addition & 1 deletion vars/voltBuildLib.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import org.volt_lang.Builder


def call(folder) {
def b = new Builder(steps, scm)
def b = new Builder(steps, scm, env)

stage('Setup') {
b.setupLib(folder)
Expand Down
2 changes: 1 addition & 1 deletion vars/voltBuildVolta.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import org.volt_lang.Builder;


def call() {
def b = new Builder(steps, scm)
def b = new Builder(steps, scm, env)

stage('Setup') {
b.setupVolta()
Expand Down
2 changes: 1 addition & 1 deletion vars/voltToolchain.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import org.volt_lang.Builder;

def call(Map config) {

def b = new Builder(steps, scm)
def b = new Builder(steps, scm, env)

stage('Setup') {
b.setupToolchain(config)
Expand Down

0 comments on commit 97ebd8e

Please sign in to comment.