Skip to content

Commit bfe44e9

Browse files
fix failing prod deploy (#421)
* fix failing prod deploy * added safe guard
1 parent 4d60f45 commit bfe44e9

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Jenkinsfile.deploy

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,14 @@ pipeline {
212212
""")
213213
echo "Output: $output"
214214
def deploy_url = (output =~ /Take a peek over at ([^\s]+)/)[0][1]
215-
def alias_url = (output =~ /Deployment alias URL: ([^\s]+)/)[0][1]
216215
echo "Deploy URL: $deploy_url"
217-
echo "Alias URL: $alias_url"
218216
env.DEPLOY_URL = deploy_url
219-
env.ALIAS_URL = alias_url
220-
217+
env.ALIAS_URL = "No alias on main branch"
218+
if (env.IS_PR == "TRUE") {
219+
def alias_url = (output =~ /Deployment alias URL: ([^\s]+)/)[0][1]
220+
echo "Alias URL: $alias_url"
221+
env.ALIAS_URL = alias_url
222+
}
221223
}
222224
}
223225
}

0 commit comments

Comments
 (0)