@@ -15,6 +15,7 @@ type Config struct {
1515 Projects []Project `yaml:"projects"`
1616 Steps []interface {} `yaml:"steps"`
1717 Env map [string ]string `yaml:"env"`
18+ Notify []interface {} `yaml:"notify"`
1819}
1920
2021func NewConfig (filename string ) * Config {
@@ -54,7 +55,7 @@ func projectsFromBuildProjects(buildProjects string, projects []Project) []Proje
5455 for _ , projectName := range projectNames {
5556 for _ , configProject := range projects {
5657 if projectName == configProject .Label {
57- affectedProjects = append (affectedProjects , configProject )
58+ affectedProjects = append (affectedProjects , configProject )
5859 }
5960 }
6061 }
@@ -71,7 +72,7 @@ func main() {
7172 log .SetLevel (ll )
7273
7374 config := NewConfig (os .Getenv (pluginPrefix + "DYNAMIC_PIPELINE" ))
74- buildProjects := os .Getenv (pluginPrefix + "BUILD_PROJECTS" )
75+ buildProjects := os .Getenv (pluginPrefix + "BUILD_PROJECTS" )
7576
7677 var affectedProjects []Project
7778 if len (buildProjects ) > 0 {
@@ -90,7 +91,7 @@ func main() {
9091 }
9192 }
9293
93- pipeline := generatePipeline (config .Steps , config .Env , affectedProjects )
94+ pipeline := generatePipeline (config .Steps , config .Notify , config . Env , affectedProjects )
9495
9596 uploadPipeline (* pipeline )
9697}
0 commit comments