[Jenkins]Remove Yarn Verion's Test (#4440)

This commit is contained in:
YundongYe 2020-04-24 10:37:13 +08:00 коммит произвёл GitHub
Родитель aaf3ac80d4
Коммит db46dc0e2e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 2 добавлений и 94 удалений

92
Jenkinsfile поставляемый
Просмотреть файл

@ -52,8 +52,6 @@ def http_check_health(uri) {
pipeline {
environment {
REGISTRY_URI = "10.0.1.5:5000"
YARN_SINGLEBOX_URI = "http://10.0.1.6"
YARN_CLUSTER_URI = "http://10.0.1.8"
K8S_CLUSTER_URI = "http://10.0.3.6"
ACCOUNT = credentials("USER_ACCOUNT")
}
@ -101,36 +99,6 @@ pipeline {
// Deploy PAI
stage("Deploy PAI") {
parallel {
stage("YARN Single Box") {
agent {
label node_label
}
steps {
script {
try {
sh "${sh} ${WORKSPACE}/tests/jenkins/stage_deploy.sh yarn singlebox"
} catch (err) {
echo "Deploy YARN Single Box Failed: ${err}"
currentBuild.result = "FAILURE"
}
}
}
}
stage("YARN Cluster") {
agent {
label node_label
}
steps {
script {
try {
sh "${sh} ${WORKSPACE}/tests/jenkins/stage_deploy.sh yarn cluster"
} catch (err) {
echo "Deploy YARN Cluster Failed: ${err}"
currentBuild.result = "FAILURE"
}
}
}
}
stage("Pure K8S Cluster") {
agent {
label node_label
@ -152,50 +120,6 @@ pipeline {
// Test PAI
stage("Test PAI") {
parallel {
stage("YARN Single Box") {
agent {
label node_label
}
steps {
script {
if (currentBuild.result == "FAILURE") {
echo "Deploy failed, skip test."
} else {
try {
timeout(time: http_timeout, unit: "MINUTES") {
http_check_health("${YARN_SINGLEBOX_URI}/rest-server/api/v1")
sh "${sh} ${WORKSPACE}/tests/jenkins/stage_test.sh yarn ${YARN_SINGLEBOX_URI}/rest-server"
}
} catch (err) {
echo "Test YARN Single Box Failed: ${err}"
currentBuild.result = "FAILURE"
}
}
}
}
}
stage("YARN Cluster") {
agent {
label node_label
}
steps {
script {
if (currentBuild.result == "FAILURE") {
echo "Deploy failed, skip test."
} else {
try {
timeout(time: http_timeout, unit: "MINUTES") {
http_check_health("${YARN_CLUSTER_URI}/rest-server/api/v1")
sh "${sh} ${WORKSPACE}/tests/jenkins/stage_test.sh yarn ${YARN_CLUSTER_URI}/rest-server"
}
} catch (err) {
echo "Test YARN Cluster Failed: ${err}"
currentBuild.result = "FAILURE"
}
}
}
}
}
stage("Pure K8S Cluster") {
agent {
label node_label
@ -254,22 +178,6 @@ pipeline {
// Clean up Cluster
stage("Clean up Cluster") {
parallel {
stage("YARN Single Box") {
agent {
label node_label
}
steps {
sh "${sh} ${WORKSPACE}/tests/jenkins/stage_clean.sh yarn singlebox"
}
}
stage("YARN Cluster") {
agent {
label node_label
}
steps {
sh "${sh} ${WORKSPACE}/tests/jenkins/stage_clean.sh yarn cluster"
}
}
stage("Pure K8S Cluster") {
agent {
label node_label

Просмотреть файл

@ -17,8 +17,8 @@
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
cluster_type="yarn"
cluster_scale="singlebox"
cluster_type="k8s"
cluster_scale="cluster"
config_path=${WORKSPACE}/tests/jenkins/${cluster_type}/${cluster_scale}/cluster-configuration