Charter Global
Annalect Interview Questions and Answers
Q1. how to setup a Jenkins Job and list the Steps to create
Setting up a Jenkins job involves creating a new job, configuring build triggers, defining build steps, and setting up post-build actions.
Create a new Jenkins job by clicking on 'New Item' and selecting the type of job you want to create (freestyle project, pipeline, etc.)
Configure build triggers such as SCM polling, scheduled builds, or triggering builds remotely
Define build steps by adding build actions like running shell commands, executing a script, or invoking a build to...read more
Q2. How to resolve conflicts when updating the working copy in SVN
Resolve conflicts in SVN by merging changes, resolving conflicts manually, and committing changes.
Use 'svn update' command to update the working copy with changes from the repository.
If conflicts occur, use 'svn status' to identify conflicted files.
Manually resolve conflicts by editing the conflicted files.
Use 'svn resolved' command to mark conflicts as resolved.
Commit the changes using 'svn commit'.
Q3. how to pass properties to ant from command line
Pass properties to ant from command line using -D flag
Use -D flag followed by property=value to pass properties to ant from command line
For example: ant -Dproperty1=value1 -Dproperty2=value2
Properties can be accessed in build.xml using ${property1} and ${property2}
Q4. how to mask password in Jenkins console log
Use Jenkins Credentials Binding Plugin to mask passwords in console log
Use Jenkins Credentials Binding Plugin to securely inject passwords into Jenkins jobs
Select 'Mask passwords' option in Jenkins job configuration to hide passwords in console log
Avoid hardcoding passwords in scripts or configurations to prevent exposure in console logs
Q5. How to setup a startup task in Linux
To setup a startup task in Linux, you can use cron jobs or systemd services.
Use cron jobs to schedule tasks to run at specific times or intervals.
Create a new cron job by editing the crontab file with 'crontab -e'.
For example, to run a script every day at 3am, add '0 3 * * * /path/to/script.sh' to the crontab file.
Alternatively, use systemd services to manage and control processes during startup.
Create a new systemd service file in the /etc/systemd/system directory.
For exampl...read more
Q6. Usage of Regular ecpressions with sed command
Regular expressions can be used with sed command to search and replace text in files.
Regular expressions can be used to specify patterns to search for in a file.
The 's' command in sed is used for substitution, where you can specify a regular expression to match and a replacement string.
For example, to replace all occurrences of 'apple' with 'orange' in a file named 'fruits.txt', you can use the command 'sed -i 's/apple/orange/g' fruits.txt'.
Q7. Advantages of Maven build tool over ant
Maven is more powerful and easier to use than ant for managing dependencies and building projects.
Maven simplifies project setup and management with its convention over configuration approach.
Maven automatically downloads dependencies from a central repository, reducing manual effort.
Maven supports project inheritance and transitive dependencies, making it easier to manage complex projects.
Maven provides plugins for various tasks like compiling, testing, packaging, and deploy...read more
Interview Process at Annalect
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month