diff --git a/Jenkinsfile b/Jenkinsfile index 07be1d89c..1f827ffeb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,10 +18,11 @@ pipeline { } } stage('Deploy') { - if (env.BRANCH_NAME == 'master') { - steps { - echo 'Deploy.' - } + when { + branch 'master' + } + steps { + echo 'Deploying' } } }