build: use isMaster function
@@ -158,7 +158,7 @@ stage("Build artifacts") {
parallel generateArtifactStages()
}
-maybeStage("Deploy Homepage", env.BRANCH_NAME=="master") {
+maybeStage("Deploy Homepage", isMaster()) {
node("frontend") {
docker.withRegistry("https://${registry}",
'docker-hub-elektra-jenkins') {
