Open bgoncalv opened 4 years ago
The problem seems to happen when I initialize Koji class and call sendMessage on same script block.
def koji = new Koji()
sendMessage(type: 'queued', artifactId: artifactId, pipelineMetadata: pipelineMetadata)
@bgoncalv could you please try now?
Tested with commit a2e6b7580a3a81b176c4fce37905a588c00af858
it didn't work
Interesting... I tried on the jenkins-1 cluster, and I couldn't trigger this problem. Let me dig into this more...
Ah, I think I know why that is - jenkins-1 has Pipeline Speed/Durability Settings
set to performance-optimized
, whereas jenkins-2 has the option set to MAX_SURVIVABILITY
. So the error makes sense -- with MAX_SURVIVABILITY, Jenkins is serializing and storing all bytecode to disk before executing it.
I think I will be able to workaround this in the library.
trying to sendMessage after
import org.fedoraproject.jenkins.koji.Koji
seems to cause an exception: