50 lines
1.7 KiB
Plaintext
50 lines
1.7 KiB
Plaintext
|
def MODULE_GIT_URL="https://github.com/openresty/headers-more-nginx-module.git"
|
||
|
|
||
|
pipeline {
|
||
|
agent none
|
||
|
stages {
|
||
|
stage('Build') {
|
||
|
parallel {
|
||
|
stage("Build on nginx:stable-alpine") {
|
||
|
agent {
|
||
|
docker {
|
||
|
image 'nginx:stable-alpine'
|
||
|
label 'linux && docker && amd64'
|
||
|
}
|
||
|
}
|
||
|
steps {
|
||
|
sh 'apk add --no-cache curl gnupg1'
|
||
|
sh './download-nginx.sh'
|
||
|
|
||
|
dir('module') {
|
||
|
git changelog: false, url: MODULE_GIT_URL
|
||
|
}
|
||
|
|
||
|
sh './build-alpine.sh'
|
||
|
archiveArtifacts "*.so,required_packages*.txt"
|
||
|
}
|
||
|
}
|
||
|
stage("Build on nginx:mainline-alpine") {
|
||
|
agent {
|
||
|
docker {
|
||
|
image 'nginx:mainline-alpine'
|
||
|
label 'linux && docker && amd64'
|
||
|
}
|
||
|
}
|
||
|
steps {
|
||
|
sh 'apk add --no-cache curl gnupg1'
|
||
|
sh './download-nginx.sh'
|
||
|
|
||
|
dir('module') {
|
||
|
git changelog: false, url: MODULE_GIT_URL
|
||
|
}
|
||
|
|
||
|
sh './build-alpine.sh'
|
||
|
archiveArtifacts "*.so,required_packages*.txt"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|