-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
32 lines (24 loc) · 940 Bytes
/
Jenkinsfile
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
node {
/*
def customImage
environment {
DOCKER_CERT_PATH = '/certs/client/xxx'
DOCKER_TLS_VERIFY = 1
}
stage ('Checkout'){
checkout scm
}
stage ('Build'){
sh 'echo Starting build of wordpress'
customImage = docker.build("jhg_wordpress:${env.BUILD_ID}","./Wordpress")
}
stage ('Deploy') {
sh 'echo Deploying Env'
sh 'docker-compose up -d --build'
}
stage ('Configure') {
sh 'docker exec -i JHG_wordpress sh -c "wp core install --url=http://localhost:8080 --title=Example --admin_user=supervisor --admin_password=strongpassword --admin_email=info@example.com --allow-root"'
sh 'docker exec -i JHG_wordpress sh -c "wp plugin install lifterlms --allow-root --activate"'
sh 'docker exec -i JHG_wordpress sh -c "wp plugin install yada-wiki --allow-root --activate"'
}*/
}