MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

Build And Release Projects – B1

rajeshkumar created the topic: Build and Release Projects – B1
Project1 (Shell Scripting)
Write a script which can ask user to enter machinename/hostname/ipaddress and based on the entry do the following tasks.
1. Check if the machine name is valid or not, it its not valid, ask user to enter the machine name again. (Play with ping command)
2. if the machine name is valid, Print Name of the drives | total size | free size | used size ( Play with cut command)
3. Install jenkins and start the services
4. and send out an email to rajesh@scmgalaxy.com

Project2 (Ant & Git-Github)
Write a Ant Script which will create a local repostory based on the user parameter passed(name of repos) and it should add numbers of files and commit.
then it should set the required git config and push to the one particular git hub remote repos.

Project3 (Maven)
Write a 2 maven project and each one of these project will consist of three differnt projects
1. Java project
2. donet
Now write a master maven project and call above projects as a sub projects.

Project4- Backup & Restore
all the three projects should be live in 5 mins and I will destroyt these setup and you will restore it within 5 mins.
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

sribhavani_u replied the topic: Build and Release Projects – B1
project1
======
#!/bin/bash
#script to ask user to enter machinename/hostname/ipaddress and check if they are valid or not
jen_start()
{
wget -O /etc/yum.repos.d/jenkins.repo pkg.jenkins-ci.org/redhat-stable/jenkins.repo
rpm --import jenkins-ci.org/redhat/jenkins-ci.org.key
yum install jenkins
java -version 1>/dev/null 2>/dev/null
i=$?
if [ $i -ne 0 ]; then
yum install java
else
service jenkins restart
chkconfig jenkins on
fi
}
while :
do
echo "Please enter host you would like to ping(machinename/hostname/ipaddress):"
read PING
count=$( ping -c 1 $PING | grep icmp* | wc -l)
if [ $count -eq 0 ]
then
echo "Given Host is invalid.give the valid host"
else
echo "Given host is valid"
df -Pk | awk ' { printf "%30s %12s %12s %12s \n", $6, $2, $4, $3 } '
echo "starting jenkins server"
jen_start
service jenkins status
i=$?
if [ $i -eq 0 ]; then
echo "jenkinsis up and running" | mail sribhavani_u@yahoo.com
fi
exit
fi
done

sribhavani_u replied the topic: Build and Release Projects – B1
PROJECT#3
=========

parent pom

4.0.0
com.sri
myproject3
jar
1.0-SNAPSHOT
myproject3

SampleApplication
webapp

maven.apache.org

junit
junit
3.8.1
test

 

SampleApplication

myproject3
com.sri
1.0-SNAPSHOT
4.0.0
com.sri
SampleApplication
jar
1.0-SNAPSHOT
SampleApplication
maven.apache.org

junit
junit
3.8.1
test

webapp

myproject3
com.sri
1.0-SNAPSHOT
4.0.0
com.sri
webapp
war
1.0-SNAPSHOT
webapp Maven Webapp
maven.apache.org

junit
junit
3.8.1
test

webapp

 

navneet07 replied the topic: Build and Release Projects – B1
echo "please enter ipaddress:"
read ipaddress
if ping -c 1 $ipaddress &> /dev/null
then
echo "Ip address is valid and Below is the filesystem of this machine $ipaddress "
df -h|cut -c1-43
else
echo "Ip address is invalid,please enter the ip again:"
read ipaddress
echo "New IP" $ipaddress
fi

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Linux Commands and Shell Scripting Reference for Linux Admins and DevOps Engineers

A structured Linux command and shell scripting reference for operations and DevOps work, rebuilt from the original link collection. It includes a practical learning workflow, command comparison tables, ready-to-use examples, and curated source links.

Read More

Shell Scripting (Bash) Training Roadmap: From First Script to Automation

This revised Bash training guide turns the original topic list into a practical learning roadmap. It shows what to study, how topics connect, and which commands to practice for real-world scripting.

Read More

PowerShell Training for Developers: Course Outline, Labs, and Delivery Options

This revised guide summarizes the original PowerShell training offering for developers and build/release engineers, including syllabus, lab focus, and delivery details. It also adds practical command examples so you can evaluate fit before enrolling.

Read More

Bash Git Aliases: A Practical Command Set for Faster Daily Git Work

Set up a clean, copy-paste-ready Bash alias collection for common Git commands, then learn when Bash aliases are better than Git’s built-in aliases. This guide also covers safe installation, workflow usage, and common mistakes to avoid.

Read More

Bash Shell Script Parameters: A Practical Reference for Positional and Special Variables

Learn how Bash passes arguments to scripts and how special parameters like $#, $@, $*, $$, and $? behave. This updated reference includes workflow diagrams, comparison tables, and production-friendly examples.

Read More

UNIX sed Quick Reference: Print and Delete Lines with Address and Pattern Ranges

Use this sed quick reference to print or delete exact lines, ranges, and regex matches without opening an editor. It also highlights GNU vs POSIX differences and safer in-place editing patterns.

Read More
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Edward Collins
Edward Collins
8 days ago

Build and release automation becomes much easier to maintain when teams treat an artifact as something that should remain unchanged throughout its journey. For example, if an application is built separately for testing, staging, and production, there is a chance that each environment receives slightly different binaries or dependencies. A more reliable approach is to create the artifact once, store it with a unique version or build identifier, and promote that same artifact through each environment. This also makes rollback and troubleshooting simpler because teams can identify exactly which build was deployed. I would be interested in seeing practical examples of artifact versioning and release traceability alongside the basic build and release steps.

1
0
Would love your thoughts, please comment.x
()
x