diff -r b3ffe65e5cf6 -r bca6821cadad pipeline.groovy --- a/pipeline.groovy Mon Oct 16 20:34:04 2017 +0100 +++ b/pipeline.groovy Mon Dec 18 22:08:00 2017 +0000 @@ -132,11 +132,17 @@ * ask user to approve that push */ if ( changes() ) { - def integrate = input(message: 'Integrate all staged changes to upstream?', - parameters: [ + def integrate = false; + + if (env.JENKINS_URL == "https://swing.fit.cvut.cz/jenkins/") { + integrate = true; + } else { + integrate = input(message: 'Integrate all staged changes to upstream?', + parameters: [ booleanParam(name: "Integrate changes", description: 'If checked, all staged changes will be pushed to an upstream repository', defaultValue: true)]); + } if ( integrate ) { push() }