diff --git a/.github/workflows/bump.yml b/.github/workflows/bump.yml index cb8c12d..147b701 100644 --- a/.github/workflows/bump.yml +++ b/.github/workflows/bump.yml @@ -11,6 +11,9 @@ on: - cron: '00 15 * * *' # enable manual trigger of version updates workflow_dispatch: + # trigger on upstream repository tag events + repository_dispatch: + types: [upstream-release] jobs: bump: runs-on: ubuntu-latest diff --git a/buildenv b/buildenv index 76f7954..972dc33 100644 --- a/buildenv +++ b/buildenv @@ -1,10 +1,11 @@ # bump: zoslib-version /ZOSLIB_VERSION="(.*)"/ https://github.com/zopencommunity/zoslib.git|semver:* ZOSLIB_VERSION="4.0.1" -export ZOPEN_BUILD_LINE="DEV" +export ZOPEN_STABLE_TAG="v${ZOSLIB_VERSION}" +export ZOPEN_BUILD_LINE="STABLE" export ZOPEN_CATEGORIES="library" -export ZOPEN_DEV_URL="https://github.com/zopencommunity/zoslib.git" -export ZOPEN_DEV_DEPS="make cmake coreutils" +export ZOPEN_STABLE_URL="https://github.com/zopencommunity/zoslib.git" +export ZOPEN_STABLE_DEPS="make cmake coreutils" export ZOPEN_DONT_ADD_ZOSLIB_DEP=1 # zoslib cannot currently build with itself export ZOPEN_CONFIGURE="cmake" diff --git a/cicd.groovy b/cicd.groovy index 276b9e0..1505e06 100644 --- a/cicd.groovy +++ b/cicd.groovy @@ -8,13 +8,6 @@ node('linux') doGenerateSubmoduleConfigurations: false, extensions: [], userRemoteConfigs: [[url: "https://github.com/zopencommunity/zoslibport.git"]]]) - // Poll changes from upstream - checkout([ - $class: 'GitSCM', - branches: [[name: '*/zopen2']], - doGenerateSubmoduleConfigurations: false, - extensions: [], - userRemoteConfigs: [[url: "https://github.com/zopencommunity/zoslib.git"]]]) } stage('Build') { build job: 'Port-Pipeline', parameters: [string(name: 'PORT_GITHUB_REPO', value: 'https://github.com/zopencommunity/zoslibport.git'), string(name: 'PORT_DESCRIPTION', value: 'ZOSLIB is a z/OS C/C++ library. It is an extended implementation of the z/OS LE C Runtime Library.' )]