Skip to content

Commit

Permalink
wip: migrate artifactory-users-report to infra.ci
Browse files Browse the repository at this point in the history
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
  • Loading branch information
dduportal committed Apr 5, 2022
1 parent c3f9c1c commit 882687c
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 8 deletions.
8 changes: 0 additions & 8 deletions artifactory-users-report/Dockerfile

This file was deleted.

47 changes: 47 additions & 0 deletions artifactory-users-report/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
@Library('pipeline-library@pull/348/head') _

pipeline {
triggers {
cron('H * * * *')
}
options {
// 6 hours timeout combined with lock and inverse precedence to will properly gate the GitHub permissions report
timeout(time: 25, unit: 'HOURS')
}
agent {
kubernetes {
yaml '''
apiVersion: v1
kind: Pod
spec:
containers:
- image: "jenkinsciinfra/helmfile:2.3.20"
imagePullPolicy: "IfNotPresent"
name: "jnlp"
resources:
limits:
memory: "512Mi"
cpu: "1"
requests:
memory: "512Mi"
cpu: "1"
securityContext:
privileged: false
'''
}
}
stages {
stage('Generate Artifactory Users Report') {
environment {
ARTIFACTORY_AUTH = credentials('artifactoryAdmin')
}
steps {
dir('artifactory-users-report') {
sh 'bash ./user-report.sh > artifactory-ldap-users-report.json'
archiveArtifacts 'artifactory-ldap-users-report.json'
publishReports ([ 'artifactory-ldap-users-report.json' ])
}
}
}
}
}

0 comments on commit 882687c

Please sign in to comment.