Skip to content

Commit 8612efb

Browse files
author
ranjeet-pivotchain
committed
while loop
1 parent ab17604 commit 8612efb

File tree

6 files changed

+1023
-53
lines changed

6 files changed

+1023
-53
lines changed

Jenkinsfile

-51
Original file line numberDiff line numberDiff line change
@@ -1,51 +0,0 @@
1-
pipeline {
2-
agent any
3-
parameters{
4-
choice(name: 'environment', choices: ['dev', 'uat', 'prod'], description: 'Select environment to deploy')
5-
}
6-
environment{
7-
NEW_VERSION = '1.3.3'
8-
SERVER_CREDENTIALS = credentials('ranjeetrj')
9-
}
10-
11-
stages {
12-
stage('Build') {
13-
steps {
14-
echo 'Building..'
15-
echo 'Building stage'
16-
}
17-
}
18-
stage('Test') {
19-
when{
20-
expression {
21-
env.BRANCH_NAME == 'dev' || env.BRANCH_NAME == 'main'
22-
}
23-
}
24-
// Below code only execute when branch is DEV or master
25-
steps {
26-
echo 'Testing..'
27-
echo 'Testing stage'
28-
}
29-
}
30-
stage('Deploy') {
31-
steps {
32-
echo 'Deploying....'
33-
echo "Deploying with version ${NEW_VERSION}"
34-
echo "Deploying with version ${SERVER_CREDENTIALS}"
35-
}
36-
}
37-
}
38-
// Defining post conditions
39-
post {
40-
always{
41-
echo "sending email to team in every condition like fail success"
42-
}
43-
success{
44-
echo "Only when success"
45-
}
46-
failure{
47-
echo "Onlyu when failure"
48-
}
49-
}
50-
}
51-

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# tech-stuff-Devops
2-
tech-stuff-Devops
1+
2+

python-code/internet-speed-check.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# import speedtest module
2+
import speedtest
3+
4+
speed_test = speedtest.Speedtest()
5+
6+
download_speed = speed_test.download()
7+
print("Your Download speed is", download_speed)
8+
9+
upload_speed = speed_test.upload()
10+
print("Your Upload speed is", upload_speed)
12 KB
Binary file not shown.

0 commit comments

Comments
 (0)