diff --git a/Jenkinsfile b/Jenkinsfile index bb6ac75..b94edc9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,3 +1,9 @@ +def getBranchNames(project){ + project.getItems().each { job -> + echo job.getProperty(org.jenkinsci.plugins.workflow.multibranch.BranchJobProperty.class).getBranch().getName() + } +} + pipeline{ agent { node{ label'workstation' }} options { @@ -18,6 +24,13 @@ pipeline{ } stages { + stage('Test') { + steps { + script { + getBranchNames("gitea-sync/antos"); + } + } + } stage('Prepare binaries') { steps { sh'''