Skip to content

Commit f1882c5

Browse files
committed
Add a new Jenkinsfile to build the project when a change is detected
1 parent fa8672f commit f1882c5

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Jenkinsfile

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
node {
2+
catchError {
3+
def nexusRepo = 'https://www.silverpeas.org/nexus/content/repositories/snapshots/'
4+
docker.image('silverpeas/silverbuild')
5+
.inside('-u root -v $HOME/.m2/settings.xml:/root/.m2/settings.xml -v $HOME/.m2/settings-security.xml:/root/.m2/settings-security.xml -v $HOME/.gitconfig:/root/.gitconfig -v $HOME/.ssh:/root/.ssh -v $HOME/.gnupg:/root/.gnupg') {
6+
stage('Preparation') {
7+
checkout scm
8+
}
9+
stage('Build and deployment') {
10+
sh "mvn clean deploy -DaltDeploymentRepository=silverpeas::default::${nexusRepo} -Djava.awt.headless=true"
11+
}
12+
}
13+
}
14+
step([$class : 'Mailer',
15+
notifyEveryUnstableBuild: true,
16+
recipients : "miguel.moquillon@silverpeas.org, yohann.chastagnier@silverpeas.org, nicolas.eysseric@silverpeas.org",
17+
sendToIndividuals : true])
18+
}

0 commit comments

Comments
 (0)