latest progress
This commit is contained in:
53
07-ionic-pipeline-mobile.groovy
Normal file
53
07-ionic-pipeline-mobile.groovy
Normal file
@@ -0,0 +1,53 @@
|
||||
pipeline {
|
||||
agent any
|
||||
tools {
|
||||
maven "maven_jenkins"
|
||||
jdk "java_jenkins"
|
||||
nodejs "nodejs"
|
||||
}
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
git url: 'https://guillemhs@bitbucket.org/itnove/myexampleapp.git'
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh 'npm install -g cordova'
|
||||
sh 'npm install -g ios-sim'
|
||||
sh 'npm install -g ios-deploy'
|
||||
sh 'npm config set prefix /usr/local'
|
||||
sh 'npm root -g'
|
||||
sh '/usr/local/lib/node_modules/ionic/bin/ionic build $OS'
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
steps {
|
||||
git url: 'git@github.com:Gromenaware/corball-test-automation-demo.git'
|
||||
sh 'mvn -Dtest=WebDriverTest -Dbrowser=chrome -Dhub=http://selgp:8b819d9d-0298-4f8f-9430-6d44e87ac7b5@ondemand.saucelabs.com:80/wd/hub test'
|
||||
}
|
||||
post {
|
||||
always {
|
||||
junit 'target/surefire-reports/**/*.xml'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
success {
|
||||
emailext (
|
||||
subject: "SUCCESSFUL: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'",
|
||||
body: """SUCCESSFUL: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]': Check console output at ${env.BUILD_URL}""",
|
||||
to: 'guillem@gromenaware.com'
|
||||
)
|
||||
|
||||
}
|
||||
failure {
|
||||
emailext (
|
||||
subject: "FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'",
|
||||
body: """FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]': Check console output at ${env.BUILD_URL}""",
|
||||
to: 'guillem@gromenaware.com'
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user