Skip to content

fixed serialization issue that occurs in some scenarios - #17

Merged
froque merged 1 commit into
jenkinsci:masterfrom
turturel:master
Sep 20, 2021
Merged

fixed serialization issue that occurs in some scenarios#17
froque merged 1 commit into
jenkinsci:masterfrom
turturel:master

Conversation

@turturel

@turturel turturel commented Sep 2, 2021

Copy link
Copy Markdown
Contributor

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

froque commented Sep 8, 2021

Copy link
Copy Markdown
Member

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

Also can you create a unit test for it?

@turturel

turturel commented Sep 8, 2021

Copy link
Copy Markdown
Contributor Author

(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
bitmeise pushed a commit to bitmeise/powershell-plugin that referenced this pull request Oct 24, 2021
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