Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Nächste Überarbeitung
Vorhergehende Überarbeitung
en:modul:m324_aws:topics:08 [2025/10/15 14:06] – angelegt dgaravaldien:modul:m324_aws:topics:08 [2025/12/15 08:43] (aktuell) dgaravaldi
Zeile 20: Zeile 20:
         stage('build') {         stage('build') {
             steps {             steps {
-                sh +                sh """
                     test -z \$SKIP_BUILD && echo 'starting to build ...'                     test -z \$SKIP_BUILD && echo 'starting to build ...'
-                +                """
             }             }
         }         }
Zeile 70: Zeile 70:
             steps {             steps {
                 script {                 script {
-                    sh +                    sh """
                         if [ -z \${SKIP_BUILD} ]                         if [ -z \${SKIP_BUILD} ]
                         then                         then
Zeile 77: Zeile 77:
                           echo skipped build ...                           echo skipped build ...
                         fi                         fi
-                    +                    """
                 }                 }
             }             }
Zeile 113: Zeile 113:
  
 \\ \\
-==== ''if-else'' within Groovy Script ==== +For more examples, see in your Course Repository.
-As an alternative Jenkins uses Groovy for writing the pipeline script. For more details read -> [[https://www.baeldung.com/linux/jenkins-conditional-constructs|here]].+
  
 ---- ----
  
 [[https://creativecommons.org/licenses/by-nc-sa/4.0/|{{https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png}}]] Daniel Garavaldi [[https://creativecommons.org/licenses/by-nc-sa/4.0/|{{https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png}}]] Daniel Garavaldi
  • en/modul/m324_aws/topics/08.1760529974.txt.gz
  • Zuletzt geändert: 2025/10/15 14:06
  • von dgaravaldi