diff options
Diffstat (limited to 'Jenkinsfile')
| -rw-r--r-- | Jenkinsfile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index 187089ad..9d6e6539 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -81,6 +81,9 @@ pipeline { triggeredBy cause: "UserIdCause" } } + environment { + PYTHONDONTWRITEBYTECODE = 1 + } steps { script { // Display Git commit Id used with the Jenkinsfile on the Job "Build History" pane @@ -96,12 +99,11 @@ pipeline { VYOS_VERSION = env.BASE_VERSION + sh(returnStdout: true, script: 'date -u +%Y%m%d%H%M').toString().trim() sh """ - ./configure \ + sudo --preserve-env ./build-vyos-image \ --build-by "${params.BUILD_BY}" \ --debian-mirror http://deb.debian.org/debian/ \ --build-type release \ - --version "${VYOS_VERSION}" ${CUSTOM_PACKAGES} - sudo make iso + --version "${VYOS_VERSION}" ${CUSTOM_PACKAGES} iso """ if (fileExists('build/live-image-amd64.hybrid.iso') == false) { @@ -174,7 +176,7 @@ pipeline { // Trigger GitHub action which will re-build the static community website which // also holds the AWS download links to the generated ISO images - withCredentials([string(credentialsId: 'GitHub-API-Token', variable: 'TOKEN')]) { + withCredentials([string(credentialsId: 'vyos.net-build-trigger-token', variable: 'TOKEN')]) { sh ''' curl -X POST --header "Accept: application/vnd.github.v3+json" \ --header "authorization: Bearer $TOKEN" --data '{"ref": "production"}' \ |
