OPENDEV: Add new projects, update rebase.sh job 30/1430/2
authorrobert.tomczyk <robert.tomczyk@est.tech>
Wed, 19 Jun 2019 12:41:02 +0000 (13:41 +0100)
committerrobert.tomczyk <robert.tomczyk@est.tech>
Wed, 19 Jun 2019 12:48:50 +0000 (13:48 +0100)
- openstack/os-traits
- openstack/os-resource-classes

Change-Id: Ia65db71e89802cb517654cb4d9233c604d6669c4

jjb/opendev/openstack-os-resource-classes/openstack-os-resource-classes-push-upstream-jobs.yml [new file with mode: 0644]
jjb/opendev/openstack-os-resource-classes/openstack-os-resource-classes-rebase-jobs.yml [new file with mode: 0644]
jjb/opendev/openstack-os-traits/openstack-os-traits-push-upstream-jobs.yml [new file with mode: 0644]
jjb/opendev/openstack-os-traits/openstack-os-traits-rebase-jobs.yml [new file with mode: 0644]
jjb/opendev/rebase-jobs.sh

diff --git a/jjb/opendev/openstack-os-resource-classes/openstack-os-resource-classes-push-upstream-jobs.yml b/jjb/opendev/openstack-os-resource-classes/openstack-os-resource-classes-push-upstream-jobs.yml
new file mode 100644 (file)
index 0000000..2fa20d2
--- /dev/null
@@ -0,0 +1,26 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 Nordix Foundation.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#
+- project:
+    name: openstack-os-resource-classes-push-upstream
+    project: openstack/os-resource-classes
+    project-name: openstack-os-resource-classes
+
+    jobs:
+      - 'opendev-{project-name}-push-upstream'
\ No newline at end of file
diff --git a/jjb/opendev/openstack-os-resource-classes/openstack-os-resource-classes-rebase-jobs.yml b/jjb/opendev/openstack-os-resource-classes/openstack-os-resource-classes-rebase-jobs.yml
new file mode 100644 (file)
index 0000000..41fc9c9
--- /dev/null
@@ -0,0 +1,26 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 Nordix Foundation.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#
+- project:
+    name: openstack-os-resource-classes-rebase
+    project: openstack/os-resource-classes
+    project-name: openstack-os-resource-classes
+
+    jobs:
+      - 'opendev-{project-name}-rebase'
\ No newline at end of file
diff --git a/jjb/opendev/openstack-os-traits/openstack-os-traits-push-upstream-jobs.yml b/jjb/opendev/openstack-os-traits/openstack-os-traits-push-upstream-jobs.yml
new file mode 100644 (file)
index 0000000..96ea9d3
--- /dev/null
@@ -0,0 +1,26 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 Nordix Foundation.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#
+- project:
+    name: openstack-os-traits-push-upstream
+    project: openstack/os-traits
+    project-name: openstack-os-traits
+
+    jobs:
+      - 'opendev-{project-name}-push-upstream'
\ No newline at end of file
diff --git a/jjb/opendev/openstack-os-traits/openstack-os-traits-rebase-jobs.yml b/jjb/opendev/openstack-os-traits/openstack-os-traits-rebase-jobs.yml
new file mode 100644 (file)
index 0000000..3b59ed8
--- /dev/null
@@ -0,0 +1,26 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 Nordix Foundation.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#
+- project:
+    name: openstack-os-traits-rebase
+    project: openstack/os-traits
+    project-name: openstack-os-traits
+
+    jobs:
+      - 'opendev-{project-name}-rebase'
\ No newline at end of file
index b223f90ddd4d0020834dedcb9cba6118a2bd1cb3..90b84c22cb815e220882960c0aeaa067c05a67be 100755 (executable)
@@ -4,6 +4,11 @@ set -o nounset
 set -o pipefail
 
 cd $WORKSPACE
+# Make sure the Nordix is set from Jenkins Job configuration
+# parameter: NORDIX_REMOTE and not from previous job execution
+if git remote | grep nordix > /dev/null ; then
+    git remote rm nordix
+fi
 # When the GERRIT_BRANCH is not set the rebase job wasn't triggered by merge
 # but it's executed as part of timer. In this case we will make sure that all
 # branches from remote are synced with Nordix Gerrit.
@@ -33,8 +38,3 @@ done
 echo "-- Pushing changes to Nordix Gerrit --"
 git push nordix --all -v
 echo "--------------------------------------------------------------------"
-# Make sure the Nordix is set from Jenkins Job configuration
-# parameter: NORDIX_REMOTE in next job run
-if git remote | grep nordix > /dev/null ; then
-    git remote rm nordix
-fi