forked from noi-techpark/opendatahub-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile-Test
33 lines (31 loc) · 1000 Bytes
/
Jenkinsfile-Test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
pipeline {
agent {
dockerfile {
filename 'docker/dockerfile-hugo'
additionalBuildArgs '--build-arg JENKINS_USER_ID=`id -u jenkins` --build-arg JENKINS_GROUP_ID=`id -g jenkins`'
}
}
environment {
AWS_ACCESS_KEY_ID = credentials('AWS_ACCESS_KEY_ID')
AWS_SECRET_ACCESS_KEY = credentials('AWS_SECRET_ACCESS_KEY')
HUGO_BASEURL ='https://opendatahub.testingmachine.eu'
MAIL_CLIENT = 'https://mailclient.opendatahub.bz.it/contact'
}
stages {
stage('Configure') {
steps {
sh 'sed -i -e "s%https://example.com%${MAIL_CLIENT}%g" src/themes/odh-fbe/static/js/main.js'
}
}
stage('Build') {
steps {
sh 'hugo -s src -d ../target'
}
}
stage('Upload') {
steps {
s3Upload(bucket: 'it.bz.opendatahub.test', acl: 'PublicRead', file: './target')
}
}
}
}