Skip to content

Commit 43a6780

Browse files
authored
Merge pull request #2 from SWCE/issue-1
issue #1
2 parents ea85bd8 + 2ee746a commit 43a6780

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Produce the current timestamp to invalidate the previous version so every build
4848
- "$BUILD_NAME" > build-name
4949
- "$BUILD_JOB_NAME" > build-job-name
5050
- "$BUILD_PIPELINE_NAME" > build-pipeline-name
51+
- "$BUILD_TEAM_NAME" > build-team-name
5152
- "$ATC_EXTERNAL_URL" > atc-external-url
5253

5354
#### Parameters

in/in_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ var _ = Describe("In", func() {
3535
"BUILD_NAME=2",
3636
"BUILD_JOB_NAME=3",
3737
"BUILD_PIPELINE_NAME=4",
38-
"ATC_EXTERNAL_URL=5",
38+
"BUILD_TEAM_NAME=5",
39+
"ATC_EXTERNAL_URL=6",
3940
)
4041
})
4142

@@ -86,7 +87,8 @@ var _ = Describe("In", func() {
8687
checkProp(destination, "build-name", "BUILD_NAME", "2", response.Metadata[1])
8788
checkProp(destination, "build-job-name", "BUILD_JOB_NAME", "3", response.Metadata[2])
8889
checkProp(destination, "build-pipeline-name", "BUILD_PIPELINE_NAME", "4", response.Metadata[3])
89-
checkProp(destination, "atc-external-url", "ATC_EXTERNAL_URL", "5", response.Metadata[4])
90+
checkProp(destination, "build-team-name", "BUILD_TEAM_NAME", "5", response.Metadata[4])
91+
checkProp(destination, "atc-external-url", "ATC_EXTERNAL_URL", "6", response.Metadata[5])
9092
})
9193

9294
})

in/main.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func main() {
2323
fatal("creating destination", err)
2424
}
2525

26-
meta := make(models.Metadata,5)
26+
meta := make(models.Metadata,6)
2727

2828
var request models.InRequest
2929

@@ -38,7 +38,8 @@ func main() {
3838
handleProp(destination, "build-name", "BUILD_NAME", meta, 1)
3939
handleProp(destination, "build-job-name", "BUILD_JOB_NAME", meta, 2)
4040
handleProp(destination, "build-pipeline-name", "BUILD_PIPELINE_NAME", meta, 3)
41-
handleProp(destination, "atc-external-url", "ATC_EXTERNAL_URL", meta, 4)
41+
handleProp(destination, "build-team-name", "BUILD_TEAM_NAME", meta, 4)
42+
handleProp(destination, "atc-external-url", "ATC_EXTERNAL_URL", meta, 5)
4243

4344
json.NewEncoder(os.Stdout).Encode(models.InResponse{
4445
Version: inVersion,

0 commit comments

Comments
 (0)