This repository was archived by the owner on Jan 15, 2025. It is now read-only.
File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
#! groovy
2
- @Library (" ace@rewrite " ) _
2
+ @Library (" ace@master " ) _
3
3
4
4
ace([dockerSet : false ]) {
5
5
stage(' Lint' ) {
Original file line number Diff line number Diff line change 1
- void call (Map opts = []) {
1
+ @SuppressWarnings ([' MethodSize' ])
2
+ void call (Map opts = [:]) {
2
3
generateAceValues(opts)
3
4
4
5
target = readYaml file : ' target-data/target.yaml'
5
6
cfg = readYaml file : ' ace.yaml'
6
7
Map gitops = cfg. gitops ?: [:]
7
8
String gitopsRepo = gitops. repo
8
- String strategy = gitops. strategy ?: " branch"
9
+ String strategy = gitops. strategy ?: ' branch'
9
10
10
11
if (! gitopsRepo) {
11
12
error(' [ace] No gitops repo specified, dying.' )
@@ -36,7 +37,7 @@ void call(Map opts = []) {
36
37
git fetch -a
37
38
"""
38
39
39
- if (strategy == " branch" ) {
40
+ if (strategy == ' branch' ) {
40
41
String pushToBranch = gitops. pushToBranch ?: ' test'
41
42
42
43
String branches = sh(
@@ -69,10 +70,10 @@ void call(Map opts = []) {
69
70
git push origin ${ pushToBranch}
70
71
fi
71
72
"""
72
- } else if (strategy == " path" ) {
73
+ } else if (strategy == ' path' ) {
73
74
String pushToBranch = gitops. pushToBranch ?: ' master'
74
75
75
- String firstEnv = gitops. firstEnv ?: " test"
76
+ String firstEnv = opts . firstEnv ?: gitops. firstEnv ?: ' test'
76
77
String targetFolder = " ${ target.name} /${ firstEnv} "
77
78
78
79
sh """
You can’t perform that action at this time.
0 commit comments