We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d60f45 commit bfe44e9Copy full SHA for bfe44e9
Jenkinsfile.deploy
@@ -212,12 +212,14 @@ pipeline {
212
""")
213
echo "Output: $output"
214
def deploy_url = (output =~ /Take a peek over at ([^\s]+)/)[0][1]
215
- def alias_url = (output =~ /Deployment alias URL: ([^\s]+)/)[0][1]
216
echo "Deploy URL: $deploy_url"
217
- echo "Alias URL: $alias_url"
218
env.DEPLOY_URL = deploy_url
219
- env.ALIAS_URL = alias_url
220
-
+ env.ALIAS_URL = "No alias on main branch"
+ if (env.IS_PR == "TRUE") {
+ def alias_url = (output =~ /Deployment alias URL: ([^\s]+)/)[0][1]
+ echo "Alias URL: $alias_url"
221
+ env.ALIAS_URL = alias_url
222
+ }
223
}
224
225
0 commit comments