Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
ddc7ae8
red color
ravi2krishna May 5, 2023
5c51b31
green color
ravi2krishna May 5, 2023
fb60ab8
red update
ravi2krishna May 17, 2023
f6e8b4d
pipeline template update
ravi2krishna May 18, 2023
9aa948a
new changes
ravi2krishna May 18, 2023
d6c0b3f
sonar analysis
ravi2krishna May 18, 2023
d6be687
build artifacts
ravi2krishna May 18, 2023
1dba8ff
upload artifacts
ravi2krishna May 18, 2023
1b7a42f
deploy app
ravi2krishna May 18, 2023
a5636fe
indent
ravi2krishna May 18, 2023
26c322b
escape character
ravi2krishna May 18, 2023
7955f0c
test version number
ravi2krishna May 19, 2023
3bbc01a
version
ravi2krishna May 19, 2023
af5f165
version
ravi2krishna May 19, 2023
e125311
version
ravi2krishna May 19, 2023
ed077ec
version extract
ravi2krishna May 19, 2023
4131a93
version extract
ravi2krishna May 19, 2023
5ed1969
version
ravi2krishna May 19, 2023
f28bf4c
PL done
ravi2krishna May 19, 2023
c282ca7
version updated
ravi2krishna May 19, 2023
127ac1b
release
ravi2krishna May 19, 2023
ee1d2a9
test
ravi2krishna May 19, 2023
4a189b1
test
ravi2krishna May 19, 2023
97769cd
test
ravi2krishna May 19, 2023
4790ed5
test
ravi2krishna May 19, 2023
022aea7
test
ravi2krishna May 19, 2023
ddeb8d8
test
ravi2krishna May 19, 2023
dcf6aca
test
ravi2krishna May 19, 2023
2ce5534
test
ravi2krishna May 19, 2023
0cb676f
test
ravi2krishna May 19, 2023
408e605
test
ravi2krishna May 19, 2023
765eae9
test
ravi2krishna May 19, 2023
715692d
tt
ravi2krishna May 19, 2023
5015b00
tt
ravi2krishna May 19, 2023
feb4b34
test version
ravi2krishna May 19, 2023
05fbe81
test upload
ravi2krishna May 19, 2023
58b2bea
test upload
ravi2krishna May 19, 2023
8f0aef5
test upload
ravi2krishna May 19, 2023
61128ce
test
ravi2krishna May 19, 2023
0821310
test zip
ravi2krishna May 19, 2023
36e7558
delete temp zip files
ravi2krishna May 19, 2023
9b028ee
update zip file
ravi2krishna May 19, 2023
374f300
test
ravi2krishna May 19, 2023
21bfc13
test deploy
ravi2krishna May 19, 2023
c42bc43
test
ravi2krishna May 19, 2023
034223a
upload
ravi2krishna May 19, 2023
623a65d
test
ravi2krishna May 19, 2023
53531d6
test
ravi2krishna May 19, 2023
a4f89cd
test
ravi2krishna May 19, 2023
c5ae86d
nginx deploy
ravi2krishna May 19, 2023
615c5eb
deploy
ravi2krishna May 19, 2023
befb0bf
deploy nginx
ravi2krishna May 19, 2023
190b56e
nginx
ravi2krishna May 19, 2023
6d3242e
force update
ravi2krishna May 19, 2023
567d9f1
update
ravi2krishna May 19, 2023
72389b9
green
ravi2krishna May 19, 2023
e4815f6
yellow update
ravi2krishna May 19, 2023
18f96cc
upgrade
ravi2krishna May 19, 2023
bdcedd5
vs
ravi2krishna May 19, 2023
5115ce8
test
ravi2krishna May 19, 2023
c8c776c
up
ravi2krishna May 19, 2023
9ffe1d2
red color
Mangeshqa13 May 31, 2023
38f4853
green version
Mangeshqa13 May 31, 2023
633653b
my 3rd commit
Mangeshqa13 Jun 2, 2023
8e391b8
added 4th
Mangeshqa13 Jun 2, 2023
3cd77e0
version 1.1-for red color
Mangeshqa13 Jun 5, 2023
42aa9a5
version -2.1-green
Mangeshqa13 Jun 5, 2023
e732b0a
v4.1-yellow version
Mangeshqa13 Jun 5, 2023
73151b5
v5.1 red version
Mangeshqa13 Jun 5, 2023
7f47e19
create pipeline lms
Mangeshqa13 Jun 9, 2023
9c22ae2
delete jenkins file
Mangeshqa13 Jun 9, 2023
cd4fc12
jenkins file aadd
Mangeshqa13 Jun 9, 2023
1a3b54a
New jenkins file updated
Mangeshqa13 Jun 9, 2023
51edcbe
release struructre pipeline
Mangeshqa13 Jun 9, 2023
06de04c
sonarqube installation
Mangeshqa13 Jun 9, 2023
4f29217
sonarqube file ext added
Mangeshqa13 Jun 9, 2023
f85bcf5
building a lms application
Mangeshqa13 Jun 9, 2023
bfa2b3f
upload file in nexus
Mangeshqa13 Jun 9, 2023
f4a96c4
scripts issue for nexus
Mangeshqa13 Jun 9, 2023
a411e24
scripts updated
Mangeshqa13 Jun 9, 2023
9e844f6
repository added
Mangeshqa13 Jun 12, 2023
92545ff
deploying code
Mangeshqa13 Jun 12, 2023
659dba3
adding bracket to pipeline
Mangeshqa13 Jun 12, 2023
37765bd
add mkdir comment
Mangeshqa13 Jun 12, 2023
9e53298
commenting sonarqube code
Mangeshqa13 Jun 12, 2023
5439c40
bracket change
Mangeshqa13 Jun 12, 2023
6c0e041
bracess
Mangeshqa13 Jun 12, 2023
ad5de0f
bracess add
Mangeshqa13 Jun 12, 2023
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
61 changes: 61 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
pipeline
{
agent any

stages
{

stage('Sonar Analysis')
{
steps
{
echo 'Testing..'
// sh 'cd webapp && sudo docker run --rm -e SONAR_HOST_URL="http://52.66.12.85:9000/" -e SONAR_LOGIN="sqp_d0d19b20d68a420ea2a1f873f756dfa0bf4493c1" -v ".:/usr/src" sonarsource/sonar-scanner-cli -Dsonar.projectKey=lms'
}
}
stage('Build Lms')
{
steps
{
echo 'Building Artifects..'
sh 'cd webapp && npm install && npm run build'
}
}

stage('Releaseing')
{

steps {
script
{
echo 'Releasing application to nexus...'
echo 'repeat'
def packageJSON = readJSON file: 'webapp/package.json'
def packageJSONVersion = packageJSON.version
echo "${packageJSONVersion}"
echo 'Store Artifacts....'
// sh "echo '${packageJSONVersion}'"
sh 'sudo rm -rf webapp/*.zip'
sh "zip webapp/dist-'${packageJSONVersion}'.zip -r webapp/dist"
sh "curl -v -u admin:shree --upload-file webapp/dist-'${packageJSONVersion}'.zip http://52.66.12.85:8081/repository/lms/"
}
}
}
stage('Deploy LMS') {
steps {
script {
echo "Deploying.."
def packageJSON = readJSON file: 'webapp/package.json'
def packageJSONVersion = packageJSON.version
echo "${packageJSONVersion}"
sh "curl -u admin:shree -X GET \'http://52.66.12.85:8081/repository/lms/dist-${packageJSONVersion}.zip\' --output dist-'${packageJSONVersion}'.zip"
sh 'sudo rm -rf /var/www/html/*'
sh "sudo unzip -o dist-'${packageJSONVersion}'.zip"
sh "sudo mkdir /var/www/html"
sh "sudo cp -r webapp/dist/* /var/www/html"
}
}
}

}
}
4 changes: 2 additions & 2 deletions webapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<style>
body {
color: 'white';
background-color: lightgreen;
background-color: green;
}
</style>
</head>
Expand All @@ -19,4 +19,4 @@
<script type="module" src="/src/main.tsx"></script>
</body>

</html>
</html>
4 changes: 2 additions & 2 deletions webapp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion webapp/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "webapp",
"private": true,
"version": "0.0.0",
"version": "2.1",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down