Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #5

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
c07b584
Create Jenkinsfile
SaiJyothiGudibandi Mar 19, 2020
2a97d87
Update Jenkinsfile
SaiJyothiGudibandi Mar 19, 2020
9fbdb64
Update Jenkinsfile
SaiJyothiGudibandi Mar 19, 2020
1c4d138
Create Dockerfile
SaiJyothiGudibandi Mar 19, 2020
2d61bfb
Update Jenkinsfile
SaiJyothiGudibandi Mar 19, 2020
3f4f7d5
Update Jenkinsfile
SaiJyothiGudibandi Mar 19, 2020
97b2d9c
Update Jenkinsfile
SaiJyothiGudibandi Mar 19, 2020
51f8e1c
Update Jenkinsfile
SaiJyothiGudibandi Mar 19, 2020
4567927
Update Jenkinsfile
SaiJyothiGudibandi Mar 19, 2020
d3c7d2c
Delete README.md
SaiJyothiGudibandi Mar 19, 2020
6b1e293
Update Jenkinsfile
SaiJyothiGudibandi Mar 19, 2020
6e37ab5
Update Jenkinsfile
SaiJyothiGudibandi Mar 19, 2020
23e3210
Update Jenkinsfile
SaiJyothiGudibandi Mar 19, 2020
601f677
Update Jenkinsfile
SaiJyothiGudibandi Mar 19, 2020
90854e5
Update Jenkinsfile
SaiJyothiGudibandi Mar 19, 2020
620719d
Update Jenkinsfile
SaiJyothiGudibandi Mar 19, 2020
88e305a
Commiting the latest changes
SaiJyothiGudibandi Mar 19, 2020
f05f336
Latest changes
SaiJyothiGudibandi Mar 19, 2020
18cdbb5
Update Jenkinsfile
SaiJyothiGudibandi Mar 20, 2020
cb7ca99
Update Jenkinsfile
SaiJyothiGudibandi Mar 20, 2020
0c2d1b9
Update Jenkinsfile
SaiJyothiGudibandi Mar 20, 2020
31d55c7
Update Jenkinsfile
SaiJyothiGudibandi Mar 20, 2020
51ddfca
Update Jenkinsfile
SaiJyothiGudibandi Mar 20, 2020
d5406dc
Update Jenkinsfile
SaiJyothiGudibandi Mar 20, 2020
094166d
Update Jenkinsfile
SaiJyothiGudibandi Mar 20, 2020
cc65009
Update Jenkinsfile
SaiJyothiGudibandi Mar 20, 2020
90ea092
Update Jenkinsfile
SaiJyothiGudibandi Mar 20, 2020
d3cd767
Update Jenkinsfile
SaiJyothiGudibandi Mar 20, 2020
1d3467c
Commiy
SaiJyothiGudibandi Apr 1, 2020
36efe01
Commiy
SaiJyothiGudibandi Apr 1, 2020
bf26daa
Update Jenkinsfile
SaiJyothiGudibandi Apr 1, 2020
7d84dde
Update Jenkinsfile
SaiJyothiGudibandi Apr 2, 2020
6730451
Commit the multibranch file
SaiJyothiGudibandi Apr 2, 2020
cb5ae53
Merge branch 'master' of https://github.com/SaiJyothiGudibandi/sample…
SaiJyothiGudibandi Apr 2, 2020
db87c35
delete
SaiJyothiGudibandi Apr 2, 2020
3d980eb
Update Jenkinsfile
SaiJyothiGudibandi Apr 7, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#
# Nginx Dockerfile
#
# https://github.com/dockerfile/nginx
#

# Pull base image.
FROM ubuntu
RUN apt-get update -y
RUN apt-get install -y software-properties-common
# Install Nginx.
RUN \
add-apt-repository -y ppa:nginx/stable && \
apt-get update && \
apt-get install -y nginx && \
rm -rf /var/lib/apt/lists/* && \
echo "\ndaemon off;" >> /etc/nginx/nginx.conf && \
chown -R www-data:www-data /var/lib/nginx

# Define mountable directories.
VOLUME ["/etc/nginx/sites-enabled", "/etc/nginx/certs", "/etc/nginx/conf.d", "/var/log/nginx", "/var/www/html"]

# Define working directory.
WORKDIR /etc/nginx

# Define default command.
CMD ["nginx"]

# Expose ports.
EXPOSE 80
EXPOSE 443
39 changes: 39 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
pipeline {
agent any

stages {
stage('Clone') {
steps {
// Get some code from a GitHub repository
checkout scm
}
}
stage('Build') {
steps {
// Run Maven on a Unix agent.
sh "mvn -v"
// To run Maven on a Windows agent, use
// bat "mvn -Dmaven.test.failure.ignore=true clean package"
}
}
stage('docker build') {
steps {
sh "docker build -t saijyothi9/sample ."
echo "Overwrite the demo??"
}
}
stage('docker push') {
steps {
sh "docker push saijyothi9/sample"
}
}
stage('docker run') {
steps {
sh "docker stop \$(docker ps -a -q)"
sh "docker rm \$(docker ps -a -q)"
sh "docker run --name mynginx1 -p 80:80 -d saijyothi9/sample"
}
}

}
}
124 changes: 0 additions & 124 deletions README.md

This file was deleted.

Empty file added jobs/job.groovy
Empty file.