Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
adeldhis2 committed Nov 5, 2024
1 parent 7face0d commit ff9569b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 51 deletions.
27 changes: 0 additions & 27 deletions jenkinsfiles/dev
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ pipeline {
}
}

/* Commented out for testing purposes
stage('Sync WAR') {
steps {
implementIoBuildStarted(buildName: "${STAGE_NAME}")
Expand Down Expand Up @@ -195,31 +194,7 @@ pipeline {
}
}
}
*/

stage('Trigger Cypress Tests') {
steps {
script {
def repos = ['dhis2/line-listing-app']
def event_type = 'cypress-test-trigger'
def payload = [
dhis2_version: env.DHIS2_VERSION
]

repos.each { repo ->
withCredentials([string(credentialsId: 'github-token', variable: 'GITHUB_TOKEN')]) {
sh """
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token $GITHUB_TOKEN" \
https://api.github.com/repos/${repo}/dispatches \
-d '{ "event_type": "${event_type}", "client_payload": ${groovy.json.JsonOutput.toJson(payload)} }'
"""
}
}
}
}
}
}

post {
Expand All @@ -230,7 +205,6 @@ pipeline {
gitHelper.setCommitStatus("${env.DHIS2_COMMIT_SHA}", "${env.DHIS2_REPO_URL}")
}
}
/* Commented out for testing purposes

failure {
script {
Expand All @@ -241,7 +215,6 @@ pipeline {
)
}
}
*/

aborted {
script {
Expand Down
24 changes: 0 additions & 24 deletions jenkinsfiles/stable
Original file line number Diff line number Diff line change
Expand Up @@ -256,30 +256,6 @@ pipeline {
}
}
}

stage('Trigger Cypress Tests') {
steps {
script {
def repos = ['dhis2/line-listing-app']
def event_type = 'cypress-test-trigger'
def payload = [
dhis2_version: env.DHIS2_VERSION
]

repos.each { repo ->
withCredentials([string(credentialsId: 'github-token', variable: 'GITHUB_TOKEN')]) {
sh """
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token $GITHUB_TOKEN" \
https://api.github.com/repos/${repo}/dispatches \
-d '{ "event_type": "${event_type}", "client_payload": ${groovy.json.JsonOutput.toJson(payload)} }'
"""
}
}
}
}
}
}

post {
Expand Down

0 comments on commit ff9569b

Please sign in to comment.