]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-13297 Add new tutorials.jenkins.skipBitbucketPreReqs user setting key
authorWouter Admiraal <wouter.admiraal@sonarsource.com>
Fri, 24 Apr 2020 12:47:41 +0000 (14:47 +0200)
committersonartech <sonartech@sonarsource.com>
Mon, 4 May 2020 20:03:53 +0000 (20:03 +0000)
server/sonar-webserver-webapi/src/main/java/org/sonar/server/user/ws/SetSettingAction.java
server/sonar-webserver-webapi/src/test/java/org/sonar/server/user/ws/SetSettingActionTest.java
sonar-ws/src/main/java/org/sonarqube/ws/client/users/SetSettingRequest.java

index 4b208c7ca2df53dd288981a0ee0c7f73e29bb089..3ebcc785cd2da6660dc927fe36789105107a2f99 100644 (file)
@@ -57,7 +57,11 @@ public class SetSettingAction implements UsersWsAction {
       .setRequired(true)
       .setMaximumLength(100)
       .setDescription("Setting key")
-      .setPossibleValues("notifications.optOut", UserUpdater.NOTIFICATIONS_READ_DATE);
+      .setPossibleValues(
+        "tutorials.jenkins.skipBitbucketPreReqs",
+        "notifications.optOut",
+        UserUpdater.NOTIFICATIONS_READ_DATE
+      );
 
     action.createParam(PARAM_VALUE)
       .setRequired(true)
index 2dd0af8b413ed30baeb44f441bad0f908c983e76..1efe8b80fedc316d64b3cb5dbfae77e1fea47b9b 100644 (file)
@@ -124,6 +124,7 @@ public class SetSettingActionTest {
         tuple("value", true, 4000));
 
     assertThat(definition.param("key").possibleValues()).containsExactlyInAnyOrder(
+      "tutorials.jenkins.skipBitbucketPreReqs",
       "notifications.optOut",
       "notifications.readDate");
   }
index e0e71dfac16a1b94d9fcba9293be97d6d39f6214..cfa48dd1342e17b99aea9192d6f9ddba7bf84992 100644 (file)
@@ -49,6 +49,7 @@ public class SetSettingRequest {
    * This is a mandatory parameter.
    * Possible values:
    * <ul>
+   *   <li>"tutorials.jenkins.skipBitbucketPreReqs"</li>
    *   <li>"notifications.optOut"</li>
    *   <li>"notifications.readDate"</li>
    * </ul>