Skip to content

Conversation

@turturel
Copy link
Contributor

@turturel turturel commented Sep 2, 2021

added transient property to TaskListener listener in order to fix serialization issue that occurs in some scenarios

issue described here

added transient property to TaskListener listener in order to fix serialization issue that occurs in some scenarios
@froque
Copy link
Member

froque commented Sep 8, 2021

I can't reproduce this. Can you provide instructions to reproduce ?

Also can you create a unit test for it?

@turturel
Copy link
Contributor Author

turturel commented Sep 8, 2021

(For me) the serialization error occurs when combining the PowerShell plugin with other plugins (particularly ones that do post build stuff) - I've seen it happen with Artifactory plugin, Groovy Postbuild plugin and Project Description Setter plugin.

Guess this is the quickest way to reproduce (Jenkins 2.303.1 LTS, PowerShell plugin 1.5, Project Description Setter 1.2):

  • install the Project Description Setter plugin
  • create a job and add a powershell step ""test txt" | Out-File -FilePath test.txt"
  • under "Build environment" check "Set a project description from a file in the workspace" and enter "test.txt" as the filename
  • run the job

Unit test TBA

@froque froque merged commit 60fa62c into jenkinsci:master Sep 20, 2021
froque added a commit that referenced this pull request Sep 20, 2021
See:
JENKINS-65613 After upgrading to powershell-plugin 1.5 enabling/disabling projects causes an error
https://issues.jenkins.io/browse/JENKINS-65613
#17
bitmeise pushed a commit to bitmeise/powershell-plugin that referenced this pull request Oct 24, 2021
See:
JENKINS-65613 After upgrading to powershell-plugin 1.5 enabling/disabling projects causes an error
https://issues.jenkins.io/browse/JENKINS-65613
jenkinsci#17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants