Fixing some typos in JenkinsFile
testing/og-dhcp-API/pipeline/head There was a failure building this commit
Details
testing/og-dhcp-API/pipeline/head There was a failure building this commit
Details
parent
f425f599a7
commit
52cde55418
|
|
@ -51,7 +51,8 @@ pipeline {
|
||||||
curl -X 'GET' "http://$new_ip/ogdhcp/v1/subnets" -H 'accept: /'
|
curl -X 'GET' "http://$new_ip/ogdhcp/v1/subnets" -H 'accept: /'
|
||||||
'''
|
'''
|
||||||
script {
|
script {
|
||||||
new_ip = readFile('ip.txt').trim()
|
def new_ip = readFile('ip.txt').trim()
|
||||||
|
env.NEW_IP = new_ip
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -64,7 +65,7 @@ pipeline {
|
||||||
|
|
||||||
sh '''
|
sh '''
|
||||||
. robotframework/bin/activate
|
. robotframework/bin/activate
|
||||||
robot --variable BASE_URL:http://${new_ip}/ogdhcp/v1 -d results/ robot/
|
robot --variable BASE_URL:http://${NEW_IP}/ogdhcp/v1 -d results/ robot/
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
// Aquí incluirías los comandos para ejecutar tus pruebas
|
// Aquí incluirías los comandos para ejecutar tus pruebas
|
||||||
|
|
@ -81,12 +82,14 @@ pipeline {
|
||||||
}
|
}
|
||||||
always {
|
always {
|
||||||
// Recoger los resultados de los tests
|
// Recoger los resultados de los tests
|
||||||
robot outputPath: 'tests/API-dhcp/results' ,
|
dir ('tests/API-dhcp') {
|
||||||
outputFileName: 'output.xml',
|
robot outputPath: 'results',
|
||||||
logFileName: 'log.html',
|
outputFileName: 'output.xml',
|
||||||
reportFileName: 'report.html',
|
logFileName: 'log.html',
|
||||||
passThreshold: 100.0,
|
reportFileName: 'report.html',
|
||||||
unstableThreshold: 75.0,
|
passThreshold: 100.0,
|
||||||
|
unstableThreshold: 75.0
|
||||||
|
}
|
||||||
// Siempre se ejecutará, independientemente del resultado
|
// Siempre se ejecutará, independientemente del resultado
|
||||||
script {
|
script {
|
||||||
// Elimina la entrada del /etc/hosts
|
// Elimina la entrada del /etc/hosts
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue