forked from fabric8io/fabric8-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile.old
44 lines (40 loc) · 1.55 KB
/
Jenkinsfile.old
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@Library('github.com/jstrachan/fabric8-pipeline-library@changes')
def utils = new io.fabric8.Utils()
def flow = new io.fabric8.Fabric8Commands()
def project = 'fabric8io/fabric8-test'
def ciDeploy = false
def imageName
def username="myuser"
def password="mypassword"
def consoleUrl="https://openshift.io"
node{
properties([
disableConcurrentBuilds()
])
}
fabric8UITestNode{
timeout(time: 1, unit: 'HOURS') {
ws {
container('ui'){
stage('E2E test') {
catchError {
sh """
git clone https://github.com/fabric8io/fabric8-test.git
echo "about to run the E2E Tests as user ${username} on console URL: ${consoleUrl}"
/usr/bin/Xvfb :99 -screen 0 1024x768x24 &
export PATH=node_modules/protractor/bin:$PATH
cd fabric8-test/ee_tests &&
npm install &&
webdriver-manager update --standalone true --versions.chrome 2.29 &&
export NODE_ENV=inmemory &&
./local_run_EE_tests.sh ${username} ${password} ${consoleUrl}
"""
}
archiveArtifacts artifacts: 'target/screenshots/*.*,**/*.log', fingerprint: true
echo "HERE IS THE TEST LOG!"
sh "cat fabric8-test/ee_tests/functional_tests.log"
}
}
}
}
}