Quantcast

Connecting Jenkins to Moodle

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Connecting Jenkins to Moodle

dursun.julide
Hello erveyone,

at the moment I am writing my bachelor thesis on the topic "Connecting software development tools to an e-learning platform". The E-Learning platform in this case is 'Moodle'. The Tools would be for example 'Jenkins'. 

My task is to find out, whether following szenario is possible:
You are a Moodle participant and you have chosen the course for learning how to use 'jenkins'. First you are reading general things on slides in Moodle. After reading and getting a picture of Jenkins functionalities, the next task in moodle would be to open the tool jenkins and do a specific task there. Problem is how does the Moodle trainer know that this task has been done? 

My aim is to find out how the Moodle trainer knows that the task in the external tool is done.

Could this be done via web services e.g. Rest since Jenkins has the REST interface? In Jenkins it should be checked whether a certain task has been done, if so an email should be sent to the Moodle Trainer.

This is the only possibility I can imagine at the moment.

Maybe it would also be possible to do that through a URL which gets the information form Jenkins and the trainer can always check the URL?...

Is that possible?
Do you have other approaches?
I am grateful for any help!

greetings
Jüli

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/446f3e71-8306-46ad-9a07-ce389ecb7bad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Connecting Jenkins to Moodle

Oleg Nenashev
Hi,

Generally everything is possible in Jenkins. I am not 100% sure that REST API will provide you enough information about the Jenkins state, but I assume it should be enough for basic intro cases ("create FreeStyle/Pipeline job", "run several builds", etc.). The info about current item configuration can be retrieved using config.xml access, which is also a part of REST API.

The only problem with the approach is that Jenkins REST API is not publicly available in the default setup, so security configuration will be one of the first tasks for the student :)

For any specific case, you can always create a plugin for Jenkins, which will provide the required information to Moodle and maybe provide other useful integrations.

Maybe it also makes sense to ask the Moodle community. They use (or used) Jenkins, so maybe they could suggest something.

Hopefully it helps,
Oleg

P.S: Once the training is ready, it would be nice if you could share it publicly

пятница, 21 апреля 2017 г., 13:14:08 UTC+2 пользователь [hidden email] написал:
Hello erveyone,

at the moment I am writing my bachelor thesis on the topic "Connecting software development tools to an e-learning platform". The E-Learning platform in this case is 'Moodle'. The Tools would be for example 'Jenkins'. 

My task is to find out, whether following szenario is possible:
You are a Moodle participant and you have chosen the course for learning how to use 'jenkins'. First you are reading general things on slides in Moodle. After reading and getting a picture of Jenkins functionalities, the next task in moodle would be to open the tool jenkins and do a specific task there. Problem is how does the Moodle trainer know that this task has been done? 

My aim is to find out how the Moodle trainer knows that the task in the external tool is done.

Could this be done via web services e.g. Rest since Jenkins has the REST interface? In Jenkins it should be checked whether a certain task has been done, if so an email should be sent to the Moodle Trainer.

This is the only possibility I can imagine at the moment.

Maybe it would also be possible to do that through a URL which gets the information form Jenkins and the trainer can always check the URL?...

Is that possible?
Do you have other approaches?
I am grateful for any help!

greetings
Jüli

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/a51ee430-b302-450c-885c-b0de5c3b834c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Connecting Jenkins to Moodle

Mark Waite-2
Since the Jenkins server which the student is creating could be anywhere, while the moodle server is a single known location, wouldn't it be better to have the Jenkins server call the moodle server with evidence that the Jenkins jobs / configuration "passed the test"?

That would allow the student to use Java or Ruby or Python or C (or ...) to define and run their job, and then have that job be responsible to contact the Moodle server to show successful completion of the exercise.

Mark Waite

On Fri, Apr 21, 2017 at 3:01 PM Oleg Nenashev <[hidden email]> wrote:
Hi,

Generally everything is possible in Jenkins. I am not 100% sure that REST API will provide you enough information about the Jenkins state, but I assume it should be enough for basic intro cases ("create FreeStyle/Pipeline job", "run several builds", etc.). The info about current item configuration can be retrieved using config.xml access, which is also a part of REST API.

The only problem with the approach is that Jenkins REST API is not publicly available in the default setup, so security configuration will be one of the first tasks for the student :)

For any specific case, you can always create a plugin for Jenkins, which will provide the required information to Moodle and maybe provide other useful integrations.

Maybe it also makes sense to ask the Moodle community. They use (or used) Jenkins, so maybe they could suggest something.

Hopefully it helps,
Oleg

P.S: Once the training is ready, it would be nice if you could share it publicly

пятница, 21 апреля 2017 г., 13:14:08 UTC+2 пользователь [hidden email] написал:
Hello erveyone,

at the moment I am writing my bachelor thesis on the topic "Connecting software development tools to an e-learning platform". The E-Learning platform in this case is 'Moodle'. The Tools would be for example 'Jenkins'. 

My task is to find out, whether following szenario is possible:
You are a Moodle participant and you have chosen the course for learning how to use 'jenkins'. First you are reading general things on slides in Moodle. After reading and getting a picture of Jenkins functionalities, the next task in moodle would be to open the tool jenkins and do a specific task there. Problem is how does the Moodle trainer know that this task has been done? 

My aim is to find out how the Moodle trainer knows that the task in the external tool is done.

Could this be done via web services e.g. Rest since Jenkins has the REST interface? In Jenkins it should be checked whether a certain task has been done, if so an email should be sent to the Moodle Trainer.

This is the only possibility I can imagine at the moment.

Maybe it would also be possible to do that through a URL which gets the information form Jenkins and the trainer can always check the URL?...

Is that possible?
Do you have other approaches?
I am grateful for any help!

greetings
Jüli

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/a51ee430-b302-450c-885c-b0de5c3b834c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAO49JtFApW6c%3D9v5F-DagEcPMw-X1BEp3d5yTBH50samhccpxQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Connecting Jenkins to Moodle

dursun.julide
In reply to this post by Oleg Nenashev
Hello Oleg,

first I want to thank you for your answer. I think I didn't describe my task clearly.
I would like Jenkins to check whether in Jenkins oder in another tool like 'DOORS' the task given by moodle is done. So Jenkins checks the Tool in which the Moodle participant has to do his task and looks whether the task is done. If so, there has to be a connection between Moodle and Jenkins. Jenkins has to show Moodle that the task is done, so the task in Moodle should automatically get a tick mark.

How could I make this kind of communication? 

Would this be possible with REST API or a Plugin? If so, could you give me some advices how to find it ot and how to implement it?

Thanks in advance. Hope you can help me.

Jüli

Am Freitag, 21. April 2017 23:01:30 UTC+2 schrieb Oleg Nenashev:
Hi,

Generally everything is possible in Jenkins. I am not 100% sure that REST API will provide you enough information about the Jenkins state, but I assume it should be enough for basic intro cases ("create FreeStyle/Pipeline job", "run several builds", etc.). The info about current item configuration can be retrieved using config.xml access, which is also a part of REST API.

The only problem with the approach is that Jenkins REST API is not publicly available in the default setup, so security configuration will be one of the first tasks for the student :)

For any specific case, you can always create a plugin for Jenkins, which will provide the required information to Moodle and maybe provide other useful integrations.

Maybe it also makes sense to ask the Moodle community. They <a href="https://github.com/ccle/moodle-automated-testing/wiki/Jenkins-server" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fccle%2Fmoodle-automated-testing%2Fwiki%2FJenkins-server\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHqjeLDv-Qlf-O6LMqQpZCqXnJGdg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fccle%2Fmoodle-automated-testing%2Fwiki%2FJenkins-server\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHqjeLDv-Qlf-O6LMqQpZCqXnJGdg&#39;;return true;">use (or used) Jenkins, so maybe they could suggest something.

Hopefully it helps,
Oleg

P.S: Once the training is ready, it would be nice if you could share it publicly

пятница, 21 апреля 2017 г., 13:14:08 UTC+2 пользователь [hidden email] написал:
Hello erveyone,

at the moment I am writing my bachelor thesis on the topic "Connecting software development tools to an e-learning platform". The E-Learning platform in this case is 'Moodle'. The Tools would be for example 'Jenkins'. 

My task is to find out, whether following szenario is possible:
You are a Moodle participant and you have chosen the course for learning how to use 'jenkins'. First you are reading general things on slides in Moodle. After reading and getting a picture of Jenkins functionalities, the next task in moodle would be to open the tool jenkins and do a specific task there. Problem is how does the Moodle trainer know that this task has been done? 

My aim is to find out how the Moodle trainer knows that the task in the external tool is done.

Could this be done via web services e.g. Rest since Jenkins has the REST interface? In Jenkins it should be checked whether a certain task has been done, if so an email should be sent to the Moodle Trainer.

This is the only possibility I can imagine at the moment.

Maybe it would also be possible to do that through a URL which gets the information form Jenkins and the trainer can always check the URL?...

Is that possible?
Do you have other approaches?
I am grateful for any help!

greetings
Jüli

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/fdf609e1-2b5a-461b-8851-83334a79bbba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Connecting Jenkins to Moodle

Oleg Nenashev
I am not a Moodle expert, hence I cannot provided detailed advice.
After your clarification I still do not understand what else do you need in addition to my original suggestions, sorry

вторник, 25 апреля 2017 г., 14:48:38 UTC+2 пользователь [hidden email] написал:
Hello Oleg,

first I want to thank you for your answer. I think I didn't describe my task clearly.
I would like Jenkins to check whether in Jenkins oder in another tool like 'DOORS' the task given by moodle is done. So Jenkins checks the Tool in which the Moodle participant has to do his task and looks whether the task is done. If so, there has to be a connection between Moodle and Jenkins. Jenkins has to show Moodle that the task is done, so the task in Moodle should automatically get a tick mark.

How could I make this kind of communication? 

Would this be possible with REST API or a Plugin? If so, could you give me some advices how to find it ot and how to implement it?

Thanks in advance. Hope you can help me.

Jüli

Am Freitag, 21. April 2017 23:01:30 UTC+2 schrieb Oleg Nenashev:
Hi,

Generally everything is possible in Jenkins. I am not 100% sure that REST API will provide you enough information about the Jenkins state, but I assume it should be enough for basic intro cases ("create FreeStyle/Pipeline job", "run several builds", etc.). The info about current item configuration can be retrieved using config.xml access, which is also a part of REST API.

The only problem with the approach is that Jenkins REST API is not publicly available in the default setup, so security configuration will be one of the first tasks for the student :)

For any specific case, you can always create a plugin for Jenkins, which will provide the required information to Moodle and maybe provide other useful integrations.

Maybe it also makes sense to ask the Moodle community. They <a href="https://github.com/ccle/moodle-automated-testing/wiki/Jenkins-server" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fccle%2Fmoodle-automated-testing%2Fwiki%2FJenkins-server\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHqjeLDv-Qlf-O6LMqQpZCqXnJGdg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fccle%2Fmoodle-automated-testing%2Fwiki%2FJenkins-server\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHqjeLDv-Qlf-O6LMqQpZCqXnJGdg&#39;;return true;">use (or used) Jenkins, so maybe they could suggest something.

Hopefully it helps,
Oleg

P.S: Once the training is ready, it would be nice if you could share it publicly

пятница, 21 апреля 2017 г., 13:14:08 UTC+2 пользователь [hidden email] написал:
Hello erveyone,

at the moment I am writing my bachelor thesis on the topic "Connecting software development tools to an e-learning platform". The E-Learning platform in this case is 'Moodle'. The Tools would be for example 'Jenkins'. 

My task is to find out, whether following szenario is possible:
You are a Moodle participant and you have chosen the course for learning how to use 'jenkins'. First you are reading general things on slides in Moodle. After reading and getting a picture of Jenkins functionalities, the next task in moodle would be to open the tool jenkins and do a specific task there. Problem is how does the Moodle trainer know that this task has been done? 

My aim is to find out how the Moodle trainer knows that the task in the external tool is done.

Could this be done via web services e.g. Rest since Jenkins has the REST interface? In Jenkins it should be checked whether a certain task has been done, if so an email should be sent to the Moodle Trainer.

This is the only possibility I can imagine at the moment.

Maybe it would also be possible to do that through a URL which gets the information form Jenkins and the trainer can always check the URL?...

Is that possible?
Do you have other approaches?
I am grateful for any help!

greetings
Jüli

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/131c4f99-6891-4637-9a7c-61742e572bc5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...