Today I was so tired cause I didn't sleep last night as I was preparing for my exam that I gave today, didn't do that well but ok.
After coming homing I was deathly tired, but had to complete my internship task which was building a CI/CD pipeline using Jenkins, mind you I have never used jenkins before.
So I thought why not give it a try, firstly I had to install it and configure it to make a separate directory for my plugins, which took me about 1.5hrs because the youtube tutorials were just people explaining linking jenkins to github, like why not start from the basics.
Then I went to the official Jenkins page where a nice gentleman told me how to dowload and configure jenkins in under 5 mins that was that.
Now before I could setup a pipeline I needed an application, I thought let me build one on rust, I did that, I was following a YT tutorial who was making a JAVA application, then I pushed my code to github and went on to jenkins to se up the pipeline.
For the life of me I couldn't get this thing to workkkkkkkkkkk.......
Mistakes I made:-
-> Trusting Chatgpt(CRAPgpt) to troubleshoot my errors.
-> Didn't know I need to globally configure mavin
-> Secondly I was using maven to build a rust project, how was I supposed to know maven mainly supports java projects.
-> Then I switched to cargo, piecing what ever the guy in the tutorial was doing
-> Finally was able to build the pipeline but it was not functioning properly when I tried adding the dockefile
Had to give up and just use the tutorial guys GitHub repo from which I copied the application and the pom.xml file.
Went back to jenkins rewrote the pipeline and used mavin correctly
and then simply built a dockerfile and configured it to so that it would push the image to dockerhub
I started around 4pm by 8pm I was finished. I was feeling soooooo sleepy right now but I had to still study as I have an exam again tommorow.
Didn't get to do rust today but its ok, tomorrow i'll probably do some questions, I would like to build my first project as soon as possible, firstly i'll build a shell prompt which accpets basic commands like bash.
Anyways that all for today,
See ya tomorrow
Top comments (0)