Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 14 additions & 20 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: Pod
spec:
containers:
- name: ci
image: eclipseglsp/ci:alpine-v7.0
image: eclipseglsp/ci:alpine-v7.1
resources:
limits:
memory: "2Gi"
Expand All @@ -31,8 +31,6 @@ spec:
readOnly: true
- name: m2-repo
mountPath: /home/jenkins/.m2/repository
- name: volume-known-hosts
mountPath: /home/jenkins/.ssh
volumes:
- name: "jenkins-home"
emptyDir: {}
Expand All @@ -46,9 +44,6 @@ spec:
path: settings.xml
- name: m2-repo
emptyDir: {}
- name: volume-known-hosts
configMap:
name: known-hosts
"""
pipeline {
agent {
Expand Down Expand Up @@ -106,9 +101,10 @@ pipeline {
if (sh(returnStatus: true, script: 'git diff --name-only | grep -q "^client/yarn.lock"') == 0) {
echo 'The yarn.lock file has uncommited changes!'
error 'The yarn.lock file has uncommited changes!'
}
}
}
}
archiveArtifacts artifacts: 'client/examples/workflow-webapp/app/**', fingerprint: true
}
}
}
Expand Down Expand Up @@ -152,23 +148,21 @@ pipeline {
}

stage('Deploy (master only)') {
when {
when {
allOf {
branch 'master';
expression {
/* Only trigger the deployment job if the changeset contains changes in
the `server` or `client/packages/` directory */
sh(returnStatus: true, script: 'git diff --name-only HEAD^ | grep -q "^server"') == 0
branch 'master'
expression {
/* Only trigger deployment if the changeset contains changes in `server` or `client/packages` directories */
sh(returnStatus: true, script: 'git diff --name-only HEAD^ | grep -q "^server\\|^client"') == 0
}
}
}
stages {
stage('Deploy server (P2)') {
steps {
build job: 'deploy-ide-p2-nightly', wait: false
}

}
steps {
build job: 'deploy-ide-p2-nightly',
wait: false,
parameters: [
string(name: 'ARTIFACT_URL', value: "${env.BUILD_URL}artifact/client/examples/workflow-webapp/app/*zip*/app.zip")
]
}
}
}
Expand Down