Skip to content

Commit 745b8ae

Browse files
committed
Update Jenkinsfile
1 parent 16c96dd commit 745b8ae

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

Jenkinsfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,13 @@ pipeline {
6565
echo "Okapi URL: ${env.okapiUrl}"
6666
echo "Tenant: ${env.tenant}"
6767

68-
// Remove existing .yarnrc on build image for release builds.
69-
// Use repo configuration.
70-
sh 'rm -f /home/jenkins/.yarnrc'
71-
buildStripesPlatform(env.okapiUrl,env.tenant)
68+
script {
69+
// Remove existing .yarnrc on build image for release builds.
70+
// Use repo configuration.
71+
sh 'rm -f /home/jenkins/.yarnrc'
72+
def branch = env.CHANGE_TARGET?.trim() ? env.CHANGE_TARGET : env.BRANCH_NAME
73+
buildStripesPlatform(env.okapiUrl, env.tenant, branch)
74+
}
7275
}
7376
}
7477

0 commit comments

Comments
 (0)