Skip to content

Commit

Permalink
Merge pull request #1 from eclipse/new_job_v1.3.x
Browse files Browse the repository at this point in the history
[releng] setup new job
  • Loading branch information
tguiu authored Jan 21, 2020
2 parents edaf96a + 4dfdc9a commit ef57315
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
pipeline {
agent { label 'migration' }

tools {
maven 'apache-maven-latest'
jdk 'oracle-jdk8-latest'
}
environment {
FROM_PR = "${env.BRANCH_NAME}".contains("PR-");
}
stages {
stage('Package & test Capella Studio') {
steps {
sh 'mvn clean verify -e -f pom.xml'
}
}
stage('Archive artifacts') {
steps {
archiveArtifacts artifacts: 'releng/plugins/org.polarsys.capella.studio.releng.product/target/*.txt, releng/plugins/org.polarsys.capella.studio.releng.updatesite/target/repository/**, releng/plugins/org.polarsys.capella.studio.releng.updatesite/target/*.txt'
}
}
stage('Deploy') {
when {
expression { return "${env.FROM_PR}".contains("false") }
}
steps {
sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
sh '''
echo "deploy update site"
ssh [email protected] rm -rf /home/data/httpd/download.eclipse.org/capella/capellastudio/updates/nightly/1.3.x
ssh [email protected] mkdir -p /home/data/httpd/download.eclipse.org/capella/capellastudio/updates/nightly/1.3.x
scp -r releng/plugins/org.polarsys.capella.studio.releng.updatesite/target/repository/* [email protected]:/home/data/httpd/download.eclipse.org/capella/capellastudio/updates/nightly/1.3.x
echo "deploy product"
ssh [email protected] rm -rf /home/data/httpd/download.eclipse.org/capella/capellastudio/products/nightly/1.3.x
ssh [email protected] mkdir -p /home/data/httpd/download.eclipse.org/capella/capellastudio/products/nightly/1.3.x
scp -r releng/plugins/org.polarsys.capella.studio.releng.product/target/products/*.zip [email protected]:/home/data/httpd/download.eclipse.org/capella/capellastudio/products/nightly/1.3.x
'''
}
}
}
}
post {
always {
archiveArtifacts artifacts: '**/*.log,*.xml,**/*.layout'
junit '*.xml'
}
}

}

0 comments on commit ef57315

Please sign in to comment.