Skip to content

Master #1

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

Merged
merged 58 commits into from
Sep 21, 2024
Merged
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
0f42359
Fixed errors
lenn0n13 Sep 19, 2024
643e13c
Fixed errors
lenn0n13 Sep 19, 2024
d4af7c1
Fixed bugs
lenn0n13 Sep 19, 2024
b479313
Updated dockerhub push
lenn0n13 Sep 19, 2024
bfadbb5
Updated GIT Streams
lenn0n13 Sep 19, 2024
c258c7f
Try
lenn0n13 Sep 19, 2024
bcd3d32
Updated Jenkinsfile
lenn0n13 Sep 19, 2024
ee04166
Updated GIT Stream Bug
lenn0n13 Sep 19, 2024
607b748
Updated GIT Stream Bug
lenn0n13 Sep 19, 2024
cfc2468
Updated GIT Stream Bug
lenn0n13 Sep 19, 2024
d0cba6c
Updated GIT Stream Bug
lenn0n13 Sep 19, 2024
1b4bab3
Updated GIT Stream Bug
lenn0n13 Sep 19, 2024
52fb1ec
Updated GIT Stream Bug
lenn0n13 Sep 19, 2024
d1c7998
Updated GIT Stream Bug
lenn0n13 Sep 19, 2024
0cb474a
Updated GIT Stream Bug
lenn0n13 Sep 19, 2024
46f87d1
Updated GIT Stream Bug
lenn0n13 Sep 19, 2024
61f9ea2
Updated GIT Stream Bug
lenn0n13 Sep 19, 2024
704895f
Updated GIT Stream Bug
lenn0n13 Sep 19, 2024
ad00e42
Updated GIT Stream Bug
lenn0n13 Sep 19, 2024
be69a58
Updated GIT Stream Bug
lenn0n13 Sep 19, 2024
acd1603
Updated GIT Stream Bug
lenn0n13 Sep 19, 2024
9b99fc5
Updated GIT Stream Bug
lenn0n13 Sep 19, 2024
5e37715
Updated GIT Stream Bug
lenn0n13 Sep 19, 2024
5622232
Updated GIT Stream Bug
lenn0n13 Sep 19, 2024
224cb69
Updated GIT Stream Bug
lenn0n13 Sep 19, 2024
1246249
Commit from Jenkins
Sep 19, 2024
346091e
Updated config
lenn0n13 Sep 19, 2024
8a823bd
Merge branch 'master' of https://github.com/lenn0n/frontendDevChallenge
lenn0n13 Sep 19, 2024
e0c5566
Updated config
lenn0n13 Sep 19, 2024
1925a93
Updated config
lenn0n13 Sep 19, 2024
e521d4b
Updated config
lenn0n13 Sep 19, 2024
8c6b84e
Updated config
lenn0n13 Sep 19, 2024
3c08ec3
Updated config
lenn0n13 Sep 19, 2024
f5e0bb2
Updated config
lenn0n13 Sep 19, 2024
221ae4d
Updated config
lenn0n13 Sep 19, 2024
eaed710
Updated config
lenn0n13 Sep 19, 2024
c8f7484
Updated config
lenn0n13 Sep 19, 2024
a44ffe0
Updated config
lenn0n13 Sep 19, 2024
346a4f6
Updated config
lenn0n13 Sep 19, 2024
9ebedf0
Updated config
lenn0n13 Sep 19, 2024
5f2ae84
Updated config
lenn0n13 Sep 19, 2024
56418cf
Updated config
lenn0n13 Sep 20, 2024
cf1bec2
Updated config
lenn0n13 Sep 20, 2024
9de4019
Updated config
lenn0n13 Sep 20, 2024
f6995a7
Updated config
lenn0n13 Sep 20, 2024
f69b745
Updated config
lenn0n13 Sep 20, 2024
ebfcb36
Updated config
lenn0n13 Sep 20, 2024
8732b8a
Updated config
lenn0n13 Sep 20, 2024
8d885b3
Updated config
lenn0n13 Sep 20, 2024
401f352
Updated jenkinsfile
lenn0n13 Sep 20, 2024
6600289
Update Jenkinsfile
lenn0n Sep 21, 2024
5962066
Update Jenkinsfile
lenn0n Sep 21, 2024
01094df
Update Jenkinsfile
lenn0n Sep 21, 2024
2669336
Update Jenkinsfile
lenn0n Sep 21, 2024
c35d630
Update Jenkinsfile
lenn0n Sep 21, 2024
5825915
Update Jenkinsfile
lenn0n Sep 21, 2024
d14b070
Update Jenkinsfile
lenn0n Sep 21, 2024
6588b46
Merge branch 'main' into master
lenn0n Sep 21, 2024
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
100 changes: 52 additions & 48 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -9,55 +9,59 @@ pipeline {
}
}
}
// stage("Build Application"){
// steps {
// nodejs(nodeJSInstallationName: 'nodejs') {
// bat 'npm install'
// bat 'npm run build'
// }
// }
// }
// stage("Dockerize Application"){
// steps {
// bat 'docker build -t webapp .'
// bat 'docker images'
// }
// }
// stage("Push To DockerHub"){
// steps {
// withCredentials ([
// usernamePassword(credentialsId: 'docker-cred',
// usernameVariable: "USERNAME",
// passwordVariable: "PASSWORD"
// )]) {
// bat 'docker login --username $USERNAME -- password PASSWORD'
// bat 'docker push webapp:dev'
// }
// }
// }
// stage("Push To Github"){
// steps {
// bat 'git config --global user.email "auto@jenkins.com"'
// bat 'git config --global user.name "Jenkins"'
// bat 'git remote add jenkins https://github.com/lenn0n/jenkins-post-build.git'
// bat 'git add .'
// bat "git commit -m 'Commit from Jenkins'"
// withCredentials([gitUsernamePassword(credentialsId: 'gh-cred', gitToolName: 'Default')]) {
// bat "git push -u origin HEAD:jenkins"
// }
// }
// }
// stage("Push To EC2"){
// steps {

// }
// }
// stage("Restart Application (PM2, Deployments)"){
// steps {

// }
// }
stage("Build Application"){
steps {
nodejs(nodeJSInstallationName: 'nodejs') {
bat 'npm install'
bat 'npm run build'
}
}
}
stage("Dockerize Application"){
steps {
bat 'docker build . -t lennonjansuy/webapp:dev'
bat 'docker images'
}
}
stage("Push To DockerHub"){
steps {
withCredentials ([
usernamePassword(credentialsId: 'docker-cred',
usernameVariable: "USERNAME",
passwordVariable: "PASSWORD"
)]) {
bat 'docker login -u $USERNAME -p $PASSWORD'
bat 'docker push lennonjansuy/webapp:dev'
}
}
}
stage("Push To Github (Clone build to other repo)"){
steps {
withCredentials([gitUsernamePassword(credentialsId: 'gh-cred', gitToolName: 'Default')]) {
git credentialsId: 'gh-cred', url: 'https://github.com/lenn0n/jenkins-post-build.git'
bat "echo 'node_modules' > .gitignore"
bat 'git add .'
bat "git commit -m 'Commit from Jenkins' || true"
bat "git push -u origin HEAD:master || true"
}
}
}
stage("Push Build Folder in Linux Machines and Restart"){
steps {
echo 'TBD'
}
}
stage("Kubernetes Deployment Restart"){
steps {
echo 'TBD'
}
}

}
post {
always {
deleteDir()
}
}

}
7,046 changes: 7,046 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"test": "echo \"Error: no test specified\"",
"start": "webpack-dev-server --mode development --open --hot",
"build": "webpack --mode production",
"build-css": "tailwindcss -i ./src/tailwind/css/main.css -o ./src/assets/css/main.css --watch"
@@ -40,4 +40,4 @@
"@babel/preset-react": "^7.22.5",
"tailwindcss": "^3.3.3"
}
}
}