diff --git a/src/main/java/org/jfrog/hudson/pipeline/types/Docker.java b/src/main/java/org/jfrog/hudson/pipeline/types/Docker.java
index <HASH>..<HASH> 100644
--- a/src/main/java/org/jfrog/hudson/pipeline/types/Docker.java
+++ b/src/main/java/org/jfrog/hudson/pipeline/types/Docker.java
@@ -13,7 +13,7 @@ import java.util.Map;
  * Created by romang on 7/28/16.
  */
 public class Docker implements Serializable {
-    private CpsScript script;
+    private transient CpsScript script;
     private String username;
     private String password;
     private String credentialsId;
HAP-<I> - Serializable exception after upgrade when doing server.upload