Issue
I have a Jenkinsfile as follows
node('workers') {
echo "Running ${env.BUILD_ID} on ${env.JENKINS_URL}"
// properties(
// [
// pipelineTriggers([cron('0 * * * *')]),
// ]
// )
stage('checkout') {
checkout scm
}
stage('Build') {
echo 'building'
}
stage('Test') {
echo 'Testing..'
}
stage('Deploy') {
echo 'Deploying....'
}
}
The properties section was not commented out before and I checked it in to test scheduling a Jenkins build from pipeline-as-code. This worked, but now I want to stop the scheduling. Commenting out the code apparently did not work, so how would I go about it?
Solution
For me a call to pipelineTriggers
with an empty list as argument did the trick:
properties([
pipelineTriggers([]),
])
Answered By - Joerg S
Answer Checked By - Timothy Miller (JavaFixing Admin)