[JIRA] (JENKINS-41165) Ignore parent changes not working since v0.7.7

1 view
Skip to first unread message

arno@90a.nl (JIRA)

unread,
Jan 18, 2017, 5:24:01 AM1/18/17
to jenkinsc...@googlegroups.com
Arno Moonen created an issue
 
Jenkins / Bug JENKINS-41165
Ignore parent changes not working since v0.7.7
Issue Type: Bug Bug
Assignee: Joseph Petersen
Components: accurev-plugin
Created: 2017/Jan/18 10:23 AM
Environment: AccuRev plug-in v0.7.7;
Jenkins 2.32.1
Priority: Major Major
Reporter: Arno Moonen

Recently updated to version 0.7.7 of the Jenkins AccuRev plug-in.
Unfortunately this seems to have broken the "Ignore parent changes" function.
When this function is enabled, I get the following message in the polling log:

Started on Jan 18, 2017 11:06:00 AM
No workspace required.
Running commands from folder "C:\workspace\Jenkins\jobs\Utilities\jobs\MultiProgram"
[MultiProgram] $ "C:\Program Files\AccuRev\bin\accurev.exe" info -H accurev:5050
Currently authenticated with Accurev server as 'CI', not logging in again.
Stream not found or Accurev login failed.
Done. Took 93 ms
No changes

When I disable this option, everything works fine.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

arno@90a.nl (JIRA)

unread,
Jan 18, 2017, 5:28:01 AM1/18/17
to jenkinsc...@googlegroups.com
Arno Moonen updated an issue
Change By: Arno Moonen
Recently updated to version 0.7.7 of the Jenkins AccuRev plug-in.
Unfortunately this seems to have broken the "Ignore parent changes" function.
When this function is enabled, I get the following message in the polling log:
{quote}

Started on Jan 18, 2017 11:06:00 AM
No workspace required.
Running commands from folder "C:\workspace\Jenkins\jobs\Utilities\jobs\MultiProgram"
[MultiProgram] $ "C:\Program Files\AccuRev\bin\accurev.exe" info -H accurev:5050
Currently authenticated with Accurev server as 'CI', not logging in again.
Stream not found or Accurev login failed.
Done. Took 93 ms
No changes
{quote}

When I disable this option, everything works fine.
Note that it did work with the snapshot version I had while working on [PR #37|https://github.com/jenkinsci/accurev-plugin/pull/37].

zerotim@gmail.com (JIRA)

unread,
Jan 18, 2017, 12:42:01 PM1/18/17
to jenkinsc...@googlegroups.com
Timothy Williams commented on Bug JENKINS-41165
 
Re: Ignore parent changes not working since v0.7.7

+1 - I'm seeing the same issue. Downgraded to AccuRev plugin 0.7.6 and jobs are now seeing changes during polling.

josephp90@gmail.com (JIRA)

unread,
Jan 18, 2017, 5:26:02 PM1/18/17
to jenkinsc...@googlegroups.com

I am a bit busy, won't have time until this weekend or next week. Your welcome to open a pull request

josephp90@gmail.com (JIRA)

unread,
Jan 18, 2017, 6:56:02 PM1/18/17
to jenkinsc...@googlegroups.com

Never mind, had some spare time right now

Would this in any case be a Variable Reference stream it is trying to find?

josephp90@gmail.com (JIRA)

unread,
Jan 18, 2017, 7:09:01 PM1/18/17
to jenkinsc...@googlegroups.com
Joseph Petersen started work on Bug JENKINS-41165
 
Change By: Joseph Petersen
Status: Open In Progress

josephp90@gmail.com (JIRA)

unread,
Jan 18, 2017, 7:35:01 PM1/18/17
to jenkinsc...@googlegroups.com

arno@90a.nl (JIRA)

unread,
Jan 19, 2017, 2:12:01 AM1/19/17
to jenkinsc...@googlegroups.com

It is not a variable reference stream in our case, just a normal one.
I will try to look at your changes and try it out today or tomorrow.

josephp90@gmail.com (JIRA)

unread,
Jan 19, 2017, 2:15:02 AM1/19/17
to jenkinsc...@googlegroups.com

I checked it, so far it works without variable reference

josephp90@gmail.com (JIRA)

unread,
Jan 19, 2017, 2:19:01 AM1/19/17
to jenkinsc...@googlegroups.com
Joseph Petersen edited a comment on Bug JENKINS-41165
I checked it, so far it works without variable reference


edit: NVM
My workspace was on the parent stream to the one I was testing :D
So yes it works.

arno@90a.nl (JIRA)

unread,
Jan 19, 2017, 2:23:01 AM1/19/17
to jenkinsc...@googlegroups.com

I just checked it and polling no longer results in an error when the snapshot version is installed.

josephp90@gmail.com (JIRA)

unread,
Jan 19, 2017, 2:25:01 AM1/19/17
to jenkinsc...@googlegroups.com
Started on 19-01-2017 08:17:00
No workspace required.
Running commands from folder "C:\Jenkins\jobs\accurev-plugin"
Authenticating with Accurev server...
[accurev-plugin] $ "C:\Program Files\AccuRev\bin\accurev.exe" login -H sandbox:5050 bam ********
Authentication completed successfully.
... expanded '$stream' to 'steammy'.
[accurev-plugin] $ "C:\Program Files\AccuRev\bin\accurev.exe" show -H sandbox:5050 -fx -p potter -s steammy streams
Checking transactions of type chstream, defcomp, mkstream, promote in stream [steammy]
[accurev-plugin] $ "C:\Program Files\AccuRev\bin\accurev.exe" hist -H sandbox:5050 -fx -p potter -s steammy -t now.1 -k chstream
No transactions of type [chstream]
[accurev-plugin] $ "C:\Program Files\AccuRev\bin\accurev.exe" hist -H sandbox:5050 -fx -p potter -s steammy -t now.1 -k defcomp
Last transaction of type [defcomp] is [id=225, date=Fri Feb 06 11:32:58 CET 2015, author=dreamy, action=defcomp, msg=]
[accurev-plugin] $ "C:\Program Files\AccuRev\bin\accurev.exe" hist -H sandbox:5050 -fx -p potter -s steammy -t now.1 -k mkstream
Last transaction of type [mkstream] is [id=217, date=Fri Feb 06 11:29:20 CET 2015, author=dreamy, action=mkstream, msg=]
[accurev-plugin] $ "C:\Program Files\AccuRev\bin\accurev.exe" hist -H sandbox:5050 -fx -p potter -s steammy -t now.1 -k promote
Last transaction of type [promote] is [id=17351, date=Thu Jan 19 08:08:19 CET 2017, author=dreamy, action=promote, msg=pokeybear]
Last valid trans [id=17351, date=Thu Jan 19 08:08:19 CET 2017, author=dreamy, action=promote, msg=pokeybear]
Done. Took 0,7 sec
Changes found

josephp90@gmail.com (JIRA)

unread,
Jan 19, 2017, 2:27:01 AM1/19/17
to jenkinsc...@googlegroups.com

scm_issue_link@java.net (JIRA)

unread,
Jan 19, 2017, 2:56:03 AM1/19/17
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Joseph
Path:
src/main/java/hudson/plugins/accurev/AccurevPromoteTrigger.java
src/main/java/hudson/plugins/accurev/AccurevSCM.java
src/main/java/hudson/plugins/accurev/CheckForChanges.java
src/main/java/hudson/plugins/accurev/cmd/ShowStreams.java
src/main/java/hudson/plugins/accurev/delegates/AbstractModeDelegate.java
src/main/java/hudson/plugins/accurev/delegates/StreamDelegate.java
src/main/java/hudson/plugins/accurev/delegates/WorkspaceDelegate.java
http://jenkins-ci.org/commit/accurev-plugin/0efd3960d53704ee6f60ac950119baa80e5a45f7
Log:
JENKINS-41165 Fix for Ignore Parent (#39)

Fixing Ignore Parent

arno@90a.nl (JIRA)

unread,
Jan 19, 2017, 2:56:03 AM1/19/17
to jenkinsc...@googlegroups.com

josephp90@gmail.com (JIRA)

unread,
Jan 19, 2017, 5:11:02 AM1/19/17
to jenkinsc...@googlegroups.com
Joseph Petersen resolved as Fixed
 

Fixed in release 0.7.8

Change By: Joseph Petersen
Status: In Progress Resolved
Resolution: Fixed

arno@90a.nl (JIRA)

unread,
Mar 29, 2017, 5:07:01 AM3/29/17
to jenkinsc...@googlegroups.com
 
Re: Ignore parent changes not working since v0.7.7

@Joseph Petersen: I'm running 0.7.11 now and it seems that the filter is broken again. I've promoted changes to files that are within the Sub-path defined in the AccuRev SCM configuration, however, a poll does not trigger the build.
I've also tried with the Filter for Poll SCM option set to the same path, but with the same result.

This is my last week at the client that uses AccuRev. Hopefully I will be able to find some time and get you some additional info.

This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

josephp90@gmail.com (JIRA)

unread,
Mar 29, 2017, 5:27:01 AM3/29/17
to jenkinsc...@googlegroups.com

Arno Moonen sadly who ever though it was a good idea to make sub-path as part of the filter when filter wasn't specified made it harder for themself

Your Filter for Poll should be using simple wildcards.

example
sub-path: uncle/bob, Jenkinsfile
Filter: unclue/bob/*, Jenkinsfile

arno@90a.nl (JIRA)

unread,
Mar 29, 2017, 5:44:03 AM3/29/17
to jenkinsc...@googlegroups.com

Thanks, that does work. I'll update my templates.

josephp90@gmail.com (JIRA)

unread,
Mar 7, 2020, 1:07:28 AM3/7/20
to jenkinsc...@googlegroups.com
Joseph Petersen assigned an issue to Joseph Petersen
 
Change By: Joseph Petersen
Assignee: Joseph Petersen (old)
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages