[JIRA] (JENKINS-60231) Jenkins does not update Jenkinsfile when it was updated

6 views
Skip to first unread message

rayane.bellazaar@devoteam.com (JIRA)

unread,
Nov 20, 2019, 10:58:03 AM11/20/19
to jenkinsc...@googlegroups.com
Rayane BELLAZAAR created an issue
 
Jenkins / Bug JENKINS-60231
Jenkins does not update Jenkinsfile when it was updated
Issue Type: Bug Bug
Assignee: Unassigned
Components: build-environment-plugin
Created: 2019-11-20 15:57
Environment: Jenkins 2.190.2
Openshift 3.10
Priority: Blocker Blocker
Reporter: Rayane BELLAZAAR

Hello Support team,

I'm running jenkins 2.190.2 on a openshift cluster 3.10 and I'm recently experimenting Jenkins to deploy our applications into our openshift cluster. So, during my testing phases on Jenkins I have created a simple jenkinsfile and put it into a github repository. Then I configure Jenkins and SCM plugin to retrieve my Jenkinsfile but now, when I make some changes into the jenkinsfile and run a new job. Jenkins didn't try to pull the latest version of my jenkinsfile and still using the old one.

Can you help me to understand why ?

I make some research over internet and I tried a lot of things but I have the same problem. I have to delete manually my workspace (connect to jenkins container and rm -rf workspace folder).

  • I tried to install Workspace cleanup and Build Environment plugins but I don't show the option (checkbox) "Clear Workspace before running job" in the settings of my pipeline.
  • I tried to add a post step into my jenkinsfile to always call the function cleanWs() but same result old jenkinsfile is used.
  • I tried to configure manually Additional Behaviours in SCM configuration but it's not persisted because I'm using openshift-sync-plugin which override pipeline configuration.

 

Best regards,

Thanks you

Rayane.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

rayane.bellazaar@devoteam.com (JIRA)

unread,
Nov 20, 2019, 11:00:06 AM11/20/19
to jenkinsc...@googlegroups.com
Rayane BELLAZAAR updated an issue
Change By: Rayane BELLAZAAR
Hello Support team,

I'm running jenkins 2.190.2 on a openshift cluster 3.10 and I'm recently experimenting Jenkins to deploy our applications into our openshift cluster. So, during my testing phases on Jenkins I have created a simple jenkinsfile and put it into a github repository. Then I configure Jenkins and SCM plugin to retrieve my Jenkinsfile but now, when I make some changes into the jenkinsfile and run a new job. Jenkins didn't try to pull the latest version of my jenkinsfile and still using the old one.

Can you help me to understand why ?

I make some research over internet and I tried a lot of things but I have the same problem. I have to delete manually my workspace _(connect to jenkins container and rm -rf workspace folder)._
* I tried to install *Workspace cleanup* and *Build Environment* plugins but I don't show the option _(checkbox)_ "Clear Workspace before running job" in the settings of my pipeline.
* I tried to add a _*post*_ step into my jenkinsfile to always call the function *cleanWs()* but same result old jenkinsfile is used.
* I tried to configure manually _*Additional Behaviours*_ in SCM configuration but it's not persisted because I'm using openshift-sync-plugin which override pipeline configuration.

 
{code:java}
pipeline { agent { kubernetes { cloud 'openshift-eu' label 'jnlp' } } stages { stage('Checkout code') { steps { git branch: "rbe-tests", url: "https://github.com/thedigitalstudio/samquote-api-tests.git", credentialsId: "eb-cicd-eu-dev-axa-ebp-fr-jenkins-git-credentials" } } stage('Test A') { steps { container('busybox') { sh "echo 'Hello world'" sh "echo 'sleep 3600'" sh "ls -la" sh "cat Jenkinsfile" } } } } post { always { cleanWs() } } }
{code}
 

Best regards,

Thanks you

Rayane.

rayane.bellazaar@devoteam.com (JIRA)

unread,
Nov 20, 2019, 11:00:08 AM11/20/19
to jenkinsc...@googlegroups.com
Rayane BELLAZAAR updated an issue
Hello Support team,

I'm running jenkins 2.190.2 on a openshift cluster 3.10 and I'm recently experimenting Jenkins to deploy our applications into our openshift cluster. So, during my testing phases on Jenkins I have created a simple jenkinsfile and put it into a github repository. Then I configure Jenkins and SCM plugin to retrieve my Jenkinsfile but now, when I make some changes into the jenkinsfile and run a new job. Jenkins didn't try to pull the latest version of my jenkinsfile and still using the old one.

Can you help me to understand why ?

I make some research over internet and I tried a lot of things but I have the same problem. I have to delete manually my workspace _(connect to jenkins container and rm -rf workspace folder)._
* I tried to install *Workspace cleanup* and *Build Environment* plugins but I don't show the option _(checkbox)_ "Clear Workspace before running job" in the settings of my pipeline.
* I tried to add a _*post*_ step into my jenkinsfile to always call the function *cleanWs()* but same result old jenkinsfile is used.
* I tried to configure manually _*Additional Behaviours*_ in SCM configuration but it's not persisted because I'm using openshift-sync-plugin which override pipeline configuration.

 

Here you can find my testing jenkinsfile

rayane.bellazaar@devoteam.com (JIRA)

unread,
Nov 20, 2019, 11:03:06 AM11/20/19
to jenkinsc...@googlegroups.com
Rayane BELLAZAAR updated an issue
Change By: Rayane BELLAZAAR
Component/s: kubernetes-plugin
Component/s: openshift-sync-plugin

vincent@latombe.net (JIRA)

unread,
Jan 29, 2020, 3:57:02 AM1/29/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages