I am in a process of configuring Jenkins to deploy artifacts. I only need apache ant and java to create artifacts(both are available on the host machine) and no other external libraries. So, I think using Maven will make it unnecessarily complex as I have only 2 ant files. I want to keep it as simple as possible.
What I want to achieve is:
1. Trigger a Jenkins job 'A' to build the artifact and deploy it to nexus repository.
2. Trigger another Jenkins Job 'B' to take same artifact generated in in step above and deploy it to target environment.
Can anyone please help me to identify challenges with my approach and share some useful links to achieve what I have specified.
A short answer is Yes you can. Each of the component you mentioned can be used individually and can be integrated into your build pipeline. TBH, your use case isn't one off and can be easily done if you start here.
I am new to Devops and started learning Jenkins. So could you please help me know, whether coding experience of any programming language is required to learn and have practice on Jenkins.
Thanks and Regards,
Srivatsasa
In my experience you will not need to program anything in order to perform task within Jenkins. You will need knowledge/experience with Maven, Ant, Git, SVN, etc, the particular technology will depend on what you want to do with Jenkins. When I use Jenkins I dont think that I have ever programmed anything.
To be truly effective and master Jenkins, you should learn Groovy. You can run any other types of programs from Jenkins, but any modifying or configuration of Jenkins will be done in Groovy.
That said, you don't have to know groovy at all to use Jenkins. You can do a LOT of what Jenkins can do and never write code. Just configure it in the UI.
Depends on what you want to do with Jenkins.
you can program in Jenkins in Groovy,Perl,Python and Bash and you can only perform simple builds ( mvn clean install )
it's all about what you want to do with Jenkins.
I use Job DSL Plugin to generate my Jenkins builds. But sometimes I make small changes to the build in Jenkins and I want to port those changes back to my DSL script automatically. Is there any way to achieve this?
Currently there is no way to generate a Job DSL script for an existing job. This has been reported in the Jenkins issue tracker as JENKINS-16360 some time ago and someone even offered a bounty, but AFAIK no one is working on the issue.
Though in jenkins' job configuration I can control when job build using 'build periodically,but it only can appoint the build time.I hope this job will build according to different script at different time.Is there any suggestion ? Thanks very much!
You can use the Script Trigger Plugin.
https://wiki.jenkins-ci.org/display/JENKINS/ScriptTrigger+Plugin
I would like to integrate Sonar Qube in my Existing Jenkins Set Up(Build Script in ANT).Please do help me in doing it
Mike
The easiest and recommended way would be to use SonarQube Jenkins Plugin. The documentation explains the process quite nicely and there is an option to run Standalone analysis, which is not dependent on your build process...