-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rely on data-binding to (re)configure descriptor #39
Changes from all commits
ef7888a
dfbea56
19e400c
a064272
0850edb
cdd3f2b
0324824
1903d21
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package hudson.tasks; | ||
|
||
import hudson.Extension; | ||
import hudson.model.AbstractDescribableImpl; | ||
import hudson.model.Descriptor; | ||
import hudson.util.Secret; | ||
import org.kohsuke.stapler.DataBoundConstructor; | ||
|
||
/** | ||
* @author <a href="mailto:[email protected]">Nicolas De Loof</a> | ||
*/ | ||
public class SMTPAuthentication extends AbstractDescribableImpl<SMTPAuthentication> { | ||
|
||
private String username; | ||
|
||
private Secret password; | ||
|
||
@DataBoundConstructor | ||
public SMTPAuthentication(String username, Secret password) { | ||
this.username = username; | ||
this.password = password; | ||
} | ||
|
||
public String getUsername() { | ||
return username; | ||
} | ||
|
||
public Secret getPassword() { | ||
return password; | ||
} | ||
|
||
@Extension | ||
public static class DescriptorImpl extends Descriptor<SMTPAuthentication> { | ||
|
||
@Override | ||
public String getDisplayName() { | ||
return "Use SMTP Authentication"; | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# The MIT License | ||
# | ||
# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Eric Lefevre-Ardant | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
# in the Software without restriction, including without limitation the rights | ||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
# copies of the Software, and to permit persons to whom the Software is | ||
# furnished to do so, subject to the following conditions: | ||
# | ||
# The above copyright notice and this permission notice shall be included in | ||
# all copies or substantial portions of the Software. | ||
# | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
# THE SOFTWARE. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,9 +25,7 @@ E-mail\ Notification=E-mail p\u00e5mindelser | |
Default\ user\ e-mail\ suffix=Standard e-mail endelse | ||
Use\ SSL=Brug SSL | ||
SMTP\ Port=SMTP Port | ||
Use\ SMTP\ Authentication=Benyt SMTP Authentificering | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ndeloof Did you miss to remove There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ndeloof |
||
SMTP\ server=SMTP Server | ||
User\ Name=Brugernavn | ||
System\ Admin\ E-mail\ Address=Systemadministratorens E-mail adresse | ||
Charset=Karakters\u00e6t | ||
Test\ configuration\ by\ sending\ test\ e-mail=Test konfigurationen ved at sende en e-mail | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,18 +20,15 @@ | |
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
# THE SOFTWARE. | ||
|
||
E-mail\ Notification=Notificaci�n por correo electr�nico | ||
E-mail\ Notification=Notificaci�n por correo electr�nico | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ndeloof Just looking at the diff on GitHub it looks like the encoding got broken. Could you double-check this (this and other properties files)? |
||
SMTP\ server=Servidor de correo saliente (SMTP) | ||
Default\ user\ e-mail\ suffix=sufijo de email por defecto | ||
Jenkins\ URL=Direcci�n web de Jenkins | ||
Use\ SMTP\ Authentication=Usar autenticaci�n SMTP | ||
User\ Name=Nombre de usuario | ||
Password=Contrase\u00F1a | ||
Jenkins\ URL=Direcci�n web de Jenkins | ||
Use\ SSL=Usar seguridad SSL | ||
SMTP\ Port=Puerto de SMTP | ||
Charset=Juego de caracteres | ||
Test\ configuration\ by\ sending\ test\ e-mail=Probar la configuraci�n enviando un correo de prueba | ||
Reply-To\ Address=Direcci�n para la respuesta | ||
Test\ e-mail\ recipient=Direcci�n para el correo de prueba | ||
Sender\ E-mail\ Address=Direcci�n de remitente | ||
Test\ configuration=Configuraci�n de pruebas | ||
Test\ configuration\ by\ sending\ test\ e-mail=Probar la configuraci�n enviando un correo de prueba | ||
Reply-To\ Address=Direcci�n para la respuesta | ||
Test\ e-mail\ recipient=Direcci�n para el correo de prueba | ||
Sender\ E-mail\ Address=Direcci�n de remitente | ||
Test\ configuration=Configuraci�n de pruebas |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,8 +30,5 @@ Default\ user\ e-mail\ suffix=Suffixe par d\u00E9faut des emails des utilisateur | |
Sender\ E-mail\ Address=Adresse e-mail de l''''exp\u00E9diteur | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In |
||
System\ Admin\ E-mail\ Address=Adresse email de l''administrateur syst\u00cbme | ||
Jenkins\ URL=URL de Jenkins | ||
User\ Name=Nom d''utilisateur | ||
Password=Mot de passe | ||
Use\ SSL=Utiliser SSL | ||
Use\ SMTP\ Authentication=Utiliser l''authentification par SMTP | ||
SMTP\ Port=Port SMTP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ndeloof Why is this empty "global.properties" file added for
Mailer
but no "config.properties" forSMTPAuthentication
?