run e2e by default only for nightlies
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
c11cf17009
commit
5532510c56
|
@ -67,19 +67,10 @@ pipeline {
|
||||||
case 'nightly':
|
case 'nightly':
|
||||||
env.DIAWI_URL = mobile.android.uploadToDiawi()
|
env.DIAWI_URL = mobile.android.uploadToDiawi()
|
||||||
case 'e2e':
|
case 'e2e':
|
||||||
e2eApk = mobile.android.uploadToSauceLabs()
|
env.SAUCE_URL = mobile.android.uploadToSauceLabs()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Run e2e') {
|
|
||||||
when { expression { cmn.getBuildType() == 'e2e' } }
|
|
||||||
steps { script {
|
|
||||||
build(
|
|
||||||
job: 'end-to-end-tests/status-app-nightly', wait: false,
|
|
||||||
parameters: [string(name: 'apk', value: "--apk=${e2eApk}")]
|
|
||||||
)
|
|
||||||
} }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,37 +64,28 @@ pipeline {
|
||||||
stage('Notify') {
|
stage('Notify') {
|
||||||
steps { script {
|
steps { script {
|
||||||
def message = (
|
def message = (
|
||||||
(env.CHANGE_ID != null ?
|
(env.CHANGE_ID != null ?
|
||||||
"Build PR #${BRANCH_NAME}(${CHANGE_BRANCH}) success! " :
|
"Build PR #${BRANCH_NAME}(${CHANGE_BRANCH}) success! " :
|
||||||
"Build ${cmn.getBuildType()} success! "
|
"Build ${cmn.getBuildType()} success! "
|
||||||
)+
|
)+
|
||||||
"<${currentBuild.absoluteUrl}|${currentBuild.displayName}> "+
|
"<${currentBuild.absoluteUrl}|${currentBuild.displayName}> "+
|
||||||
"(${currentBuild.durationString})\n"+
|
"(${currentBuild.durationString})\n"+
|
||||||
(cmn.getBuildType() == 'nightly' || cmn.getBuildType() == 'pr' ?
|
"Packages: "+
|
||||||
"Packages: "+
|
"<${apkUrl}|Android>, "+
|
||||||
"<${apkUrl}|Android>, "+
|
"(<${e2eUrl}|e2e>), "+
|
||||||
"(<${e2eUrl}|e2e>), "+
|
"<${ipaUrl}|iOS>, "+
|
||||||
"<${ipaUrl}|iOS>, "+
|
"<${dmgUrl}|MacOS>, "+
|
||||||
"<${dmgUrl}|MacOS>, "+
|
"<${appUrl}|AppImage>"
|
||||||
"<${appUrl}|AppImage>" :
|
|
||||||
"Packages: "+
|
|
||||||
"<${dro.getBuildVariables().get('DIAWI_URL')}|Android>, "+
|
|
||||||
"<${ios.getBuildVariables().get('DIAWI_URL')}|iOS>"
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
slackSend(
|
slackSend(
|
||||||
message: message,
|
message: message,
|
||||||
color: 'good'
|
color: 'good'
|
||||||
)
|
)
|
||||||
if (env.CHANGE_ID != null) {
|
if (env.CHANGE_ID != null) {
|
||||||
cmn.githubNotify(
|
cmn.githubNotify(
|
||||||
apkUrl,
|
apkUrl, e2eUrl, ipaUrl, dmgUrl, appUrl,
|
||||||
e2eUrl,
|
env.CHANGE_ID
|
||||||
ipaUrl,
|
)
|
||||||
dmgUrl,
|
|
||||||
appUrl,
|
|
||||||
env.CHANGE_ID
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
} }
|
} }
|
||||||
}
|
}
|
||||||
|
@ -112,5 +103,15 @@ pipeline {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Run e2e') {
|
||||||
|
when { expression { cmn.getBuildType() == 'nightly' } }
|
||||||
|
steps { script {
|
||||||
|
e2eApk = e2e.getBuildVariables().get('SAUCE_URL')
|
||||||
|
build(
|
||||||
|
job: 'end-to-end-tests/status-app-nightly', wait: false,
|
||||||
|
parameters: [string(name: 'apk', value: "--apk=${e2eApk}")]
|
||||||
|
)
|
||||||
|
} }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue