Jenkins auth plugin - where to store the script and how to pass parameters?

This is my first time dealing with Jenkins plugins - I apologize if it's too naive but I could not find an answer. Docs for this auth plugin, https://wiki.jenkins-ci.org/display/JENKINS/Script+Security+Realm, say: "Each time the authentication is attemped (which is once per session), the specified script will be invoked". However, it does not say where to put the script or what to name it. Is there a standard directory for plugin-related scripts in Jenkins or do I need to do some configuration after I write this script? Also, how can I get user parameters, id and password, on a login attempt? Any help is greatly appreciated.

0
задан 17 March 2017 в 22:33
1 ответ

После установки плагина, вы должны быть в состоянии выбрать опцию Аутентификация с помощью пользовательского скрипта на Configure Global Security | Security Realm и настроить расположение скрипта, как вы можете видеть на следующем изображении.

пользовательский скрипт realm

2
ответ дан 4 December 2019 в 13:34

Теги

Похожие вопросы