[JIRA] (JENKINS-59622) Jenkins workspace can not be updated automatically

8 views
Skip to first unread message

wangyuanyuan0220@163.com (JIRA)

unread,
Oct 2, 2019, 5:40:03 AM10/2/19
to jenkinsc...@googlegroups.com
Wang Yuan Yuan created an issue
 
Jenkins / Bug JENKINS-59622
Jenkins workspace can not be updated automatically
Issue Type: Bug Bug
Assignee: Mark Waite
Components: git-plugin
Created: 2019-10-02 09:39
Priority: Major Major
Reporter: Wang Yuan Yuan
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

wangyuanyuan0220@163.com (JIRA)

unread,
Oct 2, 2019, 5:41:06 AM10/2/19
to jenkinsc...@googlegroups.com
Wang Yuan Yuan updated an issue
Change By: Wang Yuan Yuan
Hi, team,

When we use the ‘Sparse Checkout paths’ of Additional Behaviours, we meet one question.

Environment Descriptions:
Jenkins running type: Docker
Jenkins Job type: Pipeline
Sparse Checkout Path: test
Script Path: test/Jenkinsfile

Question Descriptions:
Under test/, we had two files, one is Jenkinsfile, the other one is one shell script which will be called by Jenkinsfile.

After configuring the git source, and specified the Sparse checkout paths by adding an additional behaviour and Script Path as above,
the first build can be run successfully.

And then, we change the Code Structure to Git server side.
Moved Jenkinsfile and Shell script to test/test1/.
And indisde Jenkins job, changed Sparse Checkout path from test to test/test1, changed Script Path from test/Jenkinsfile to test/test1/Jenkinsfile.

And executed the second build, Console output of Jenkins threw one error:
stderr: error: Entry ‘test/Jenkinsfile’ not uptodate. Cannot update sparse checkout.

After investigation, we found that the Jenkins workspace haven’t be updated to the new code structure, still the old one.
If we clean the workspace manually, the build can be run successfully.

How to implement this in Jenkins automatically?

Please help to investigate this issue.

Thanks in advance. 

mark.earl.waite@gmail.com (JIRA)

unread,
Oct 3, 2019, 11:33:03 AM10/3/19
to jenkinsc...@googlegroups.com
Mark Waite assigned an issue to Unassigned
Change By: Mark Waite
Assignee: Mark Waite
Reply all
Reply to author
Forward
0 new messages