-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from hubot-js/development
Version 2.1.0
- Loading branch information
Showing
11 changed files
with
135 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
[ | ||
{ | ||
"key": "jenkins", | ||
"name": "Jenkins Jobs", | ||
"description": "To use Jenkins jobs use the following commands:", | ||
"visible": true | ||
} | ||
] | ||
[ | ||
{ | ||
"key": "jenkins", | ||
"name": "jenkins:categories.name", | ||
"description": "jenkins:categories.description", | ||
"visible": true | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
[ | ||
{ | ||
"speak": "Okay, I'll ask you some questions. If you need more details <https://github.com/hubot-js/gear-jenkins#configurations|*click here*>." | ||
"speak": "jenkins:configuration.start" | ||
}, | ||
|
||
{ | ||
"speak": "_*Do you use Jenkins with authentication?*_", | ||
"speak": "jenkins:configuration.firstQuestion", | ||
"expectedResponses": [ | ||
{ | ||
"response": "Yes", | ||
"response": "jenkins:yes", | ||
"iteration": { | ||
"speak": "_*What is the Jenkins url?*_ The url should have this format: http://user:authToken@jenkinsUrl. \nIf you do not want to make this setting now, keeping the current value, type *skip*.", | ||
"speak": "jenkins:configuration.url.question.auth", | ||
"handler": "src/configHandler/url-handler" | ||
} | ||
}, | ||
|
||
{ | ||
"response": "No", | ||
"response": "jenkins:no", | ||
"iteration": { | ||
"speak": "_*What is the Jenkins url?*_ Just use the Jenkins access url. \nIf you do not want to make this setting now, keeping the current value, type *skip*.", | ||
"speak": "jenkins:configuration.url.question.noAuth", | ||
"handler": "src/configHandler/url-handler" | ||
} | ||
} | ||
] | ||
}, | ||
|
||
{ | ||
"speak": "All right. Jenkins configured." | ||
"speak": "jenkins:configuration.allright" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
[ | ||
{ | ||
"trigger": "hubot start job $", | ||
"handler": "start-job", | ||
"category": "jenkins", | ||
"description": "To start a job use the command next to replacing $ by job name.", | ||
"options": { | ||
"message": "<!channel|channel> Alright. I'll start the job" | ||
} | ||
} | ||
] | ||
[ | ||
{ | ||
"trigger": "jenkins:tasks.trigger", | ||
"handler": "start-job", | ||
"category": "jenkins", | ||
"description": "jenkins:tasks.description", | ||
"options": { | ||
"message": "jenkins:tasks.options.message" | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"notFoundedJob": "Sorry I could not find the job *{{job}}*", | ||
"errorOnStartJob": "Sorry I could not start the job *{{job}}*. See the error in the logs.", | ||
"configuration": { | ||
"start": "Okay, I'll ask you some questions. If you need more details <https://github.com/hubot-js/gear-jenkins#configurations|*click here*>.", | ||
"firstQuestion": "_*Do you use Jenkins with authentication?*_", | ||
"url": { | ||
"question": { | ||
"auth": "_*What is the Jenkins url?*_ The url should have this format: http://user:authToken@jenkinsUrl. \nIf you do not want to make this setting now, keeping the current value, type *skip*.", | ||
"noAuth": "_*What is the Jenkins url?*_ Just use the Jenkins access url. \nIf you do not want to make this setting now, keeping the current value, type *skip*." | ||
}, | ||
"responds": "Url responds. Apparently everything is alright. :champagne:", | ||
"notResponds": "I could not check the url. Something is wrong. :disappointed: Check if the url is correct." | ||
}, | ||
"skip": "skip", | ||
"allright": "All right. Jenkins configured." | ||
}, | ||
"log": { | ||
"error": { | ||
"onCall": "Error on call Jenkins" | ||
} | ||
}, | ||
"yes": "Yes", | ||
"no": "No", | ||
"categories": { | ||
"name": "Jenkins Jobs", | ||
"description": "To use Jenkins jobs use the following commands:" | ||
}, | ||
"tasks": { | ||
"trigger": "start job $", | ||
"description": "To start a job use the command next to replacing $ by job name.", | ||
"options": { | ||
"message": "<!channel|channel> Alright. I'll start the job" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"notFoundedJob": "Desculpe não consegui encontrar o job *{{job}}*", | ||
"errorOnStartJob": "Desculpa não consegui iniciar o job *{{job}}*. Veja o erro nos logs.", | ||
"configuration": { | ||
"start": "Certo, eu vou lhe fazer algumas perguntas. Se você precisar de mais detalhes <https://github.com/hubot-js/gear-jenkins#configurations|*clique aqui*>.", | ||
"firstQuestion": "_*Você usa o Jenkins com autenticação?*_", | ||
"url": { | ||
"question": { | ||
"auth": "_*Qual é a sua url do Jenkins?*_ A url deve ter este formato: http://usuario:tokenDeAutenticacao@jenkinsUrl. \nSe você não quiser fazer esta configuração agora, mantendo o valor atual, digite *pular*.", | ||
"noAuth": "_*Qual é a sua url do Jenkins?*_ Simplesmente use a sua url de acesso ao Jenkins. \nSe você não quiser fazer esta configuração agora, mantendo o valor atual, digite *pular*." | ||
}, | ||
"responds": "A url responde. Aparentemente está tudo certo. :champagne:", | ||
"notResponds": "Eu não consegui verificar a url. Algo está errado. :disappointed: Verifique se a url está correta." | ||
}, | ||
"skip": "pular", | ||
"allright": "Tudo certo. Jenkins configurado." | ||
}, | ||
"log": { | ||
"error": { | ||
"onCall": "Erro ao chamar o Jenkins" | ||
} | ||
}, | ||
"yes": "Sim", | ||
"no": "Não", | ||
"categories": { | ||
"name": "Jenkins Jobs", | ||
"description": "Para usar os jobs do Jenkins utilize os seguintes comandos:" | ||
}, | ||
"tasks": { | ||
"trigger": "iniciar job $", | ||
"description": "Para iniciar um job use o comando a seguir substituindo $ pelo nome do job.", | ||
"options": { | ||
"message": "<!channel|channel> Tudo certo. Eu vou iniciar o job" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters