diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 70905e65b2..0000000000 --- a/Jenkinsfile +++ /dev/null @@ -1,68 +0,0 @@ -// Update-branches job - -properties( - [ - disableConcurrentBuilds(), - disableResume(), - buildDiscarder( - logRotator( - artifactDaysToKeepStr: '60', - daysToKeepStr: '60') - ), - ] -) - -// https://issues.jenkins-ci.org/browse/JENKINS-33511 -def set_workspace() { - if(env.WORKSPACE == null) { - env.WORKSPACE = WORKSPACE = pwd() - } -} - -node('openshift-build-1') { - try { - timeout(time: 30, unit: 'MINUTES') { - deleteDir() - set_workspace() - dir('aos-cd-jobs') { - stage('clone') { - checkout scm - sh 'git checkout master' - } - stage('run') { - final url = sh( - returnStdout: true, - script: 'git config remote.origin.url') - if(!(url =~ /^[-\w]+@[-\w]+(\.[-\w]+)*:/)) { - error('This job uses ssh keys for auth, please use an ssh url') - } - def prune = true, key = 'openshift-bot' - if(url.trim() != 'git@github.com:openshift-eng/aos-cd-jobs.git') { - prune = false - key = "${(url =~ /.*:([^\/]+)/)[0][1]}-aos-cd-bot" - } - sshagent([key]) { - sh """\ -python3 -m venv ../env/ -. ../env/bin/activate -pip install gitpython -export GIT_PYTHON_TRACE=full -${prune ? 'python -m aos_cd_jobs.pruner' : 'echo Fork, skipping pruner'} -python -m aos_cd_jobs.updater -""" - } - } - } - } - } catch(err) { - mail( - to: 'jupierce@redhat.com', - from: "aos-cicd@redhat.com", - subject: 'aos-cd-jobs-branches job: error', - body: """\ -Encountered an error while running the aos-cd-jobs-branches job: ${err}\n\n -Jenkins job: ${env.BUILD_URL} -""") - throw err - } -} diff --git a/Jenkinsfile b/Jenkinsfile new file mode 120000 index 0000000000..8f0b205fa0 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1 @@ +scheduled-jobs/scanning/unresolved-art-threads/Jenkinsfile \ No newline at end of file diff --git a/unresolved-thread-notification.py b/unresolved-thread-notification.py new file mode 120000 index 0000000000..b1c49091ae --- /dev/null +++ b/unresolved-thread-notification.py @@ -0,0 +1 @@ +scheduled-jobs/scanning/unresolved-art-threads/unresolved-thread-notification.py \ No newline at end of file