1
0
Fork 0

修改测试文件中访问端口,删除jenkinsfile中不必要的阶段

Lanhui-add-articles
张小飞 2021-06-01 11:35:23 +08:00
parent f475915ab6
commit 03446abe22
6 changed files with 7 additions and 15 deletions

12
Jenkinsfile vendored
View File

@ -9,11 +9,7 @@ pipeline {
checkout([$class: 'GitSCM', branches: [[name: '*/SPM-Spring2021-2599-张小飞201831990641']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '15b0474b-b8eb-4574-9506-464f19a2b33e', url: 'https://github.com/lanlab-org/EnglishPal.git']]])
}
}
stage('MakeDatabasefile') {
steps {
sh 'cat ./app/static/wordfreqapp.sql | sqlite3 ./app/static/wordfreqapp.db'
}
}
stage('BuildIt') {
steps {
echo 'Building..'
@ -31,10 +27,6 @@ pipeline {
sh 'python3 -m pytest -v -s ./app/test'
}
}
stage('DeployIt') {
steps {
echo 'Deploying....'
}
}
}
}

View File

@ -10,7 +10,7 @@ import string
driver = webdriver.Remote('http://localhost:4444/wd/hub', DesiredCapabilities.CHROME)
driver.implicitly_wait(10)
HOME_PAGE = 'http://121.4.94.30:91/'
HOME_PAGE = 'http://121.4.94.30:5000/'
def has_punctuation(s):

View File

@ -10,7 +10,7 @@ import string
driver = webdriver.Remote('http://localhost:4444/wd/hub', DesiredCapabilities.CHROME)
driver.implicitly_wait(10)
HOME_PAGE = 'http://121.4.94.30:91/'
HOME_PAGE = 'http://121.4.94.30:5000/'
def has_punctuation(s):

View File

@ -9,7 +9,7 @@ import random, string
driver = webdriver.Remote('http://localhost:4444/wd/hub', DesiredCapabilities.CHROME)
driver.implicitly_wait(10)
HOME_PAGE = 'http://121.4.94.30:91/'
HOME_PAGE = 'http://121.4.94.30:4000/'

View File

@ -9,7 +9,7 @@ import random, string, time
driver = webdriver.Remote('http://localhost:4444/wd/hub', DesiredCapabilities.CHROME)
driver.implicitly_wait(10)
HOME_PAGE = 'http://121.4.94.30:91/'
HOME_PAGE = 'http://121.4.94.30:5000/'

View File

@ -9,7 +9,7 @@ import random, string
driver = webdriver.Remote('http://localhost:4444/wd/hub', DesiredCapabilities.CHROME)
driver.implicitly_wait(10)
HOME_PAGE = 'http://121.4.94.30:91/'
HOME_PAGE = 'http://121.4.94.30:5000/'