This repository has been archived by the owner on Aug 3, 2022. It is now read-only.
forked from ContainX/openstack4j
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Pureport pom overrides and Jenkinsfile, disable tests
This is a rebase & squash of the 3.1.1-pureport-1.1 tag (6e71d50) onto ContainX/openstack4j/master (44c7ae1). - All Java code changes have been excluded (these are PR branches) - POM files are updated with the Pureport versions - Jenkinsfile has been added - Tests have been disabled The rebase log looks like: pick d3036c5 [PE-344] Changes to support automated releases: drop 7a90335 [PE-344] Add QoS Policy ID to port fixup 4475be5 Feature/pe 344 support listing qos policies (#4) drop c95b907 [PE-334] Add ability to set a fixed IP on a network port. (#5) squash 8424914 [PE-423] Switch to newer gitflow plugin which supports releasing from detached HEAD which is how Jenkins checks out the code from git. (#7) squash 0594ad6 Set GIT_COMMITTER_NAME and GIT_COMMITTER_EMAIL environment variables so that shell git can properly. squash fab9705 Attempt to use credentials plugin and ssh-agent to configure the key for git. squash 211d0a0 Update versions for release squash ce0c5f6 Update for next development version squash b6a779e Use sonatype-nexus-releases repository for releases with the Maven Release plugin. Revert back to 1.0-SNAPSHOT. Don't skip the deploy process during the release. squash e0d7a84 Reverting back to 1.0-SNAPSHOT squash 3cdb675 Run deploy post release goal. squash f884c50 Update versions for release squash 8aef10e Update for next development version squash 3763da0 Changing dev version to 3.1.1-pureport-1.1-SNAPSHOT drop f0b5eca [PE-626] Make Network MTU writable assuming that the net-mtu-writable extension is enabled. squash 85f7dfb Update versions for release The dropped commits have been created into PRs and will subsequently be merged: Old: 7a90335 & 4475be5 -> New: 1e007b1 - ContainX#1260 Old: f0b5eca -> New: 37bff3d - ContainX#1261 Old: c95b907 -> New: 09feaac - ContainX#1262
- Loading branch information
Showing
18 changed files
with
156 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
pipeline { | ||
agent any | ||
tools { | ||
jdk 'Oracle JDK 8u181' | ||
maven 'Maven 3.5.4' | ||
} | ||
// From https://medium.com/@MichaKutz/create-a-declarative-pipeline-jenkinsfile-for-maven-releasing-1d43c896880c | ||
parameters { | ||
booleanParam(name: "RELEASE", | ||
description: "Build a release from current commit.", | ||
defaultValue: false) | ||
} | ||
stages { | ||
stage('Build') { | ||
steps { | ||
script { | ||
sh "mvn clean compile" | ||
} | ||
} | ||
} | ||
stage('Publish snapshot') { | ||
when { | ||
branch 'develop' | ||
} | ||
steps { | ||
script { | ||
sh "mvn deploy" | ||
} | ||
} | ||
} | ||
stage('Publish release') { | ||
when { | ||
allOf { | ||
branch 'develop' | ||
expression { params.RELEASE } | ||
} | ||
} | ||
steps { | ||
withCredentials([sshUserPrivateKey(credentialsId: 'afd41fdf-71c7-4174-8d63-c4ae8d163367', keyFileVariable: 'SSH_KEY')]){ | ||
sh "ssh-agent bash -c 'ssh-add ${SSH_KEY}; mvn -B gitflow:release-start gitflow:release-finish -DpostReleaseGoals=deploy'" | ||
} | ||
} | ||
} | ||
} | ||
post { | ||
always { | ||
/* clean up our workspace */ | ||
deleteDir() | ||
} | ||
success { | ||
slackSend(color: '#30A452', message: "SUCCESS: <${env.BUILD_URL}|${env.JOB_NAME}#${env.BUILD_NUMBER}>") | ||
} | ||
unstable { | ||
slackSend(color: '#DD9F3D', message: "UNSTABLE: <${env.BUILD_URL}|${env.JOB_NAME}#${env.BUILD_NUMBER}>") | ||
} | ||
failure { | ||
slackSend(color: '#D41519', message: "FAILED: <${env.BUILD_URL}|${env.JOB_NAME}#${env.BUILD_NUMBER}>") | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.