summaryrefslogtreecommitdiffstats
path: root/collections-debian-merged/ansible_collections/cyberark/conjur/Jenkinsfile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 20:03:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 20:03:01 +0000
commita453ac31f3428614cceb99027f8efbdb9258a40b (patch)
treef61f87408f32a8511cbd91799f9cececb53e0374 /collections-debian-merged/ansible_collections/cyberark/conjur/Jenkinsfile
parentInitial commit. (diff)
downloadansible-a453ac31f3428614cceb99027f8efbdb9258a40b.tar.xz
ansible-a453ac31f3428614cceb99027f8efbdb9258a40b.zip
Adding upstream version 2.10.7+merged+base+2.10.8+dfsg.upstream/2.10.7+merged+base+2.10.8+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'collections-debian-merged/ansible_collections/cyberark/conjur/Jenkinsfile')
-rw-r--r--collections-debian-merged/ansible_collections/cyberark/conjur/Jenkinsfile69
1 files changed, 69 insertions, 0 deletions
diff --git a/collections-debian-merged/ansible_collections/cyberark/conjur/Jenkinsfile b/collections-debian-merged/ansible_collections/cyberark/conjur/Jenkinsfile
new file mode 100644
index 00000000..3dc2f497
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/cyberark/conjur/Jenkinsfile
@@ -0,0 +1,69 @@
+#!/usr/bin/env groovy
+
+pipeline {
+ agent { label 'executor-v2' }
+
+ options {
+ timestamps()
+ buildDiscarder(logRotator(numToKeepStr: '30'))
+ }
+
+ stages {
+
+ stage('Validate') {
+ parallel {
+ stage('Changelog') {
+ steps { sh './ci/parse-changelog.sh' }
+ }
+ }
+ }
+
+ stage('Run tests') {
+ parallel {
+ stage("Test conjur_variable lookup plugin") {
+ steps {
+ sh './ci/test.sh -d conjur_variable'
+ junit 'tests/conjur_variable/junit/*'
+ }
+ }
+
+ stage("Test conjur_host_identity role") {
+ steps {
+ sh './ci/test.sh -d conjur_host_identity'
+ junit 'roles/conjur_host_identity/tests/junit/*'
+ }
+ }
+ }
+ }
+
+ stage('Build Release Artifacts') {
+ when {
+ anyOf {
+ branch 'master'
+ buildingTag()
+ }
+ }
+
+ steps {
+ sh './ci/build_release'
+ archiveArtifacts 'cyberark-conjur-*.tar.gz'
+ }
+ }
+
+ stage('Publish to Ansible Galaxy') {
+ when {
+ buildingTag()
+ }
+
+ steps {
+ sh 'summon ./ci/publish_to_galaxy'
+ }
+ }
+ }
+
+ post {
+ always {
+ cleanupAndNotify(currentBuild.currentResult)
+ }
+ }
+}