mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
911d4bc770
* Make sonarExecuteScan orchestrator-agnostic
* Increase coverage + support empty or false env vars
* Use cleared env for unit tests
* Refactor to standalone package
* Fix review findings
* Fix review findings
* Fix unit test
* Add logging
* Refactor
* Add to codeowners 😎
* Apply suggestions from code review
* Remove unreachable code
* no message
* fix typos
Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
14 lines
170 B
Go
14 lines
170 B
Go
package orchestrator
|
|
|
|
import (
|
|
"os"
|
|
"strings"
|
|
)
|
|
|
|
func resetEnv(e []string) {
|
|
for _, val := range e {
|
|
tmp := strings.Split(val, "=")
|
|
os.Setenv(tmp[0], tmp[1])
|
|
}
|
|
}
|