Merge "Fix eclipse project generation" into stable-2.16
diff --git a/Jenkinsfile b/Jenkinsfile
index 085cc65..f2d361e 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -63,17 +63,15 @@
}
def getCheckResultFromBuild() {
- switch(build.result) {
- case 'SUCCESS':
- return "SUCCESSFUL"
- case 'NOT_BUILT':
- case 'ABORTED':
- return "NOT_STARTED"
- case 'FAILURE':
- case 'UNSTABLE':
- default:
- return "FAILED"
+ def resultString = build.result.toString()
+ if (resultString == 'SUCCESS') {
+ return "SUCCESSFUL"
+ } else if (resultString == 'NOT_BUILT' || resultString == 'ABORTED') {
+ return "NOT_STARTED"
}
+
+ // Remaining options: 'FAILURE' or 'UNSTABLE':
+ return "FAILED"
}
}
diff --git a/java/com/google/gerrit/server/restapi/account/PutHttpPassword.java b/java/com/google/gerrit/server/restapi/account/PutHttpPassword.java
index 02f59ac..d671ebf 100644
--- a/java/com/google/gerrit/server/restapi/account/PutHttpPassword.java
+++ b/java/com/google/gerrit/server/restapi/account/PutHttpPassword.java
@@ -40,6 +40,7 @@
import com.google.gwtorm.server.OrmException;
import com.google.inject.Inject;
import com.google.inject.Provider;
+import com.google.inject.Singleton;
import java.io.IOException;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
@@ -47,6 +48,7 @@
import org.apache.commons.codec.binary.Base64;
import org.eclipse.jgit.errors.ConfigInvalidException;
+@Singleton
public class PutHttpPassword implements RestModifyView<AccountResource, HttpPasswordInput> {
private static final FluentLogger logger = FluentLogger.forEnclosingClass();